Roleplayname? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Roleplayname? (
/showthread.php?tid=159822)
Roleplayname? -
bartje01 - 14.07.2010
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.
Re: Roleplayname? -
DeathOnaStick - 14.07.2010
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);
}
Re: Roleplayname? -
bartje01 - 14.07.2010
THanks guys