16.08.2012, 19:28
Are you sure you placed it under OnPlayerConnect?
pawn Код:
public OnPlayerConnect(playerid)
{
// Roleplay name checker, for non-admins.
if(PlayerInfo[playerid][pAdmin] == 0)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName, "_", true) == -1)
{
SendClientMessage(playerid, COLOR_YELLOW, "You must have a name following the Firstname_Lastname format. You got kicked as a result!");
Kick(playerid);
}
}
return 1;
}
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds.