22.12.2012, 00:32
Use strfind under OnPlayerRequestClass.
Ex:
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;
}