Roleplayname?
#1

Hey all. I'm really intersted of how to make an automatic kick if you don't have an name like this: First_Last
Can someone help me with it

Thanks in advance.
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
if(strfind(PName, "_", true)>0&&strfind(PName, "_", true)<MAX_PLAYER_NAME)
{
     //your stuff
}
else kick(playerid);
}
Reply
#3

THanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)