how to add Firstname_Lastname to blank server - 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: how to add Firstname_Lastname to blank server (
/showthread.php?tid=129467)
how to add Firstname_Lastname to blank server -
hardstop - 22.02.2010
I need Firstname_Lastname system to my blank gamemode
Can anyone copy for me?
Like you get kicked if you dont have Firstname_Lastname
Re: how to add Firstname_Lastname to blank server -
Correlli - 22.02.2010
There are many scripts on this forum for checking the First_Last name format -
http://forum.sa-mp.com/index.php?action=search
Re: how to add Firstname_Lastname to blank server -
hardstop - 22.02.2010
I cant find can you send me link of some ?
Re: how to add Firstname_Lastname to blank server -
Torran - 22.02.2010
Quote:
Originally Posted by Don Correlli
|
Yeah as Don Correlli said but erm :P here
pawn Код:
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
Kick(playerid);
return 1;
}
That should work, Not saying it will though
OnPlayerConnect
Re: how to add Firstname_Lastname to blank server -
Correlli - 22.02.2010
http://forum.sa-mp.com/index.php?topic=131015.0
Re: how to add Firstname_Lastname to blank server -
hardstop - 22.02.2010
Thanks