08.07.2013, 18:59
can i do that?when a player enter my server, and his name is like [admin] xxx but he is not admin, i want the systen kick him for his bad name
public OnPlayerConnect(playerid)
{
pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
if(!strcmp(pName, "[admin]", false, strlen("[admin]"))) Kick(playerid);
return 1;
}
if(strfind(playerName, "[admin]", true) && !IsPlayerAdmin(playerid))
Kick(playerid);