Name_Lastname
#8

Quote:
Originally Posted by Roach_
Посмотреть сообщение
You must find a character in the whole name:
pawn Код:
if(!strfind(playername, "_", true, 1) !=-1) return Kick(playerid);
If not, the server will kick the player..
Add this at the OnPlayerConnect Callback
This will allow names like "____" or "__something" or "blabla_____". There is no guarantee it's a real roleplay name. The best way to do this would be regular expressions (using the regex plugin).

Regex would be something like (untested):
pawn Код:
/^[a-zA-Z].+_[a-zA-Z].+$/
Plugin:
https://sampforum.blast.hk/showthread.php?tid=247893
Reply


Messages In This Thread
Name_Lastname - by Razor_Sebi - 20.01.2013, 20:41
Re: Name_Lastname - by Roach_ - 20.01.2013, 20:46
Re: Name_Lastname - by Razor_Sebi - 20.01.2013, 21:37
Re: Name_Lastname - by GWMPT - 20.01.2013, 21:41
Re: Name_Lastname - by Razor_Sebi - 21.01.2013, 07:14
Re: Name_Lastname - by azzerking - 21.01.2013, 07:34
Re: Name_Lastname - by Razor_Sebi - 21.01.2013, 07:58
Re: Name_Lastname - by Sinner - 21.01.2013, 09:01

Forum Jump:


Users browsing this thread: 3 Guest(s)