[HELP] text AntiCheat
#4

quick example
EDIT forgot to inset the callback
pawn Код:
public OnPlayerText(playerid,text[])
{
if(strcmp(text,"PS",false))
{
    for(new otherid=0;otherid<MAX_PLAYERS;otherid++)
    {
        if(IsPlayerAdmin(otherid))//change this to your admins system's enum or what ever you use
        {
            new Name[MAX_PLAYER_NAME];GetPlayerName(playerid,Name,sizeof(Name));
            new Str[128];format(Str,128,"Player: %s Has Used: %s",Name,text);
            SendClientMessage(otherid,-1,Str);
        }
   
    }
}
return 1;
}
Reply


Messages In This Thread
[HELP] text AntiCheat - by c0GI - 21.12.2011, 21:40
Re: [HELP] text AntiCheat - by c0GI - 21.12.2011, 21:45
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 12:56
Re: [HELP] text AntiCheat - by park4bmx - 22.12.2011, 13:35
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 13:38
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 13:45
Re: [HELP] text AntiCheat - by kizla - 22.12.2011, 13:47
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 13:50
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 14:03
Re: [HELP] text AntiCheat - by c0GI - 22.12.2011, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)