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