Участник
Пользователь
- Сообщения
- 272
- Реакции
- 14
Hi. How do I add a message to this plugin (gives players Steam VIP for free) that they received a VIP 3 seconds after joining the team?
I can't do this. I used the "set_task" option, but then it gave everyone a VIP, and the second time it gave players a VIP steam, but the message popped up to all players.
Код:
#include <amxmodx>
new Forward_amxbans,iRet
public plugin_init() {
Forward_amxbans= CreateMultiForward("amxbans_admin_connect",ET_IGNORE,FP_CELL)
}
public client_putinserver(id)
{
if(is_steam(id))
set_user_flags(id, ADMIN_LEVEL_H)
ExecuteForward(Forward_amxbans, iRet, id);
}
stock bool:is_steam(id)
{
new auth[65]
get_user_authid(id,auth,64)
if(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1)
return true;
return false;
}
13 Окт 2022