Non RP name help - 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: Non RP name help (
/showthread.php?tid=609363)
Non RP name help -
Grimlock - 11.06.2016
I was using a FS [nonrpnamekick] but its not working for my GM, anyone can help me? there are so many People playing my RP server with nickname like: [FT]FakeTram,
- iam using GM Classified Gaming Roleplay [i change the language to my country lang]
p.s -i need a line too for kick people who using [TAG] without permission from admin. thx
2nd p.s -i need line too for hiding player dot from radar, it keep appearing even iam using FS to hide it.
Re: Non RP name help -
Konstantinos - 11.06.2016
It is only valid if name contains A-Z, a-z characters and 1 underscore:
pawn Код:
IsValidRPName(const p_name[])
{
new count_underscore;
for (new i, j = strlen(p_name); i != j; i++)
{
switch (p_name[i])
{
case 'A' .. 'Z', 'a' .. 'z': continue;
case '_': count_underscore++;
default: return 0;
}
}
return count_underscore == 1;
}
Re: Non RP name help -
Luicy. - 11.06.2016
Can you code pawn? Cause it seems like you're using fs's to everything.