Easy Kick if name is question.
#2

Use strfind under OnPlayerRequestClass.

Ex:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    new name[24];
    GetPlayerName(playerid, name, sizeof(name));
    if(strfind(name, "officer", true) != -1)
    {
        SendClientMessage(playerid, -1, "Officer found!");
                 Kick(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Easy Kick if name is question. - by jakejohnsonusa - 22.12.2012, 00:15
Re: Easy Kick if name is question. - by gtakillerIV - 22.12.2012, 00:32

Forum Jump:


Users browsing this thread: 3 Guest(s)