Last_Name / license and everything related to RP - 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)
+--- Thread: Last_Name / license and everything related to RP (
/showthread.php?tid=356182)
Last_Name / license and everything related to RP -
OnSystem - 02.07.2012
i want to know what need in RP Mod ..
I have House and DealerShip System , and i want filterscript of Driver/Weapon License ,
and if the player no in the game with the name Firstname_Lastname he got kick.
and can you give me the introduction of the game server and i edit it to my server
and admin system good to RP Server..
Thanks to helpers!!
Re: Last_Name / license and everything related to RP -
Steven82 - 02.07.2012
For the name code, here is an awesome stock I found. Keep the credits!
pawn Код:
stock IsARoleplayName(name[]) // Function created by LennytheCup
{
new
szLastCell,
bool: bUnderScore;
for(new i; i < strlen(name); i++)
{
if(name[i] == '_')
{
if(bUnderScore == true)
{
return 0;
}
bUnderScore = true;
}
else if(!szLastCell || szLastCell == '_')
{
if(name[i] < 'A' || name[i] > 'Z')
{
return 0;
}
}
else
{
if(name[i] < 'a' || name[i] > 'z')
return 0;
}
szLastCell = name[i];
}
if(bUnderScore == false)
return 0;
return 1;
}
As for everything else, we are not going to write all the coding for your server. Find tutorials and learn how to do it yourself. Use the search function, I know there are a couple drivers license filter scripts out there.
Re: Last_Name / license and everything related to RP -
OnSystem - 03.07.2012
i need this license system and weapon!