Player Name!!! - 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: Player Name!!! (
/showthread.php?tid=513556)
Player Name!!! -
MasonSFW - 17.05.2014
Help i have this problem.
Same player account i have checked Users name account i saw this below:
Can anyone give me AutoCorrect word like simple
When player Connect if player come with name sapd_police change to Sapd_Police
VIP change to Vip
MAXIX to Maxix
KOOOS to Kooos
and etc.
Thank for help me
Re: Player Name!!! -
Spartaaaaa - 17.05.2014
Maybe he is making multiple accounts? or update scriptfiles
Re : Player Name!!! -
tooq - 17.05.2014
lock at the S and the s
Re : Player Name!!! -
Ramoboss - 17.05.2014
You have to disable the MaJ vйrification in the account verification ^^
Re: Player Name!!! -
MasonSFW - 17.05.2014
I want auto correct word player name fs please
Re: Player Name!!! -
Jefff - 17.05.2014
pawn Код:
AutoCorrect(name[])
{
new i = 1;
name[0] = toupper(name[0]);
while(name[i])
{
name[i] = tolower(name[i]);
i++;
}
if((i = strfind(name,"_",true,2)) != -1 && name[i+1] != 0)
name[i+1] = toupper(name[i+1]);
return name;
}
usage
pawn Код:
new Nick[25];
GetPlayerName(playerid,Nick,25);
AutoCorrect(Nick);
Re: Player Name!!! -
MasonSFW - 17.05.2014
okay i will test
Re: Player Name!!! -
MasonSFW - 17.05.2014
Quote:
Originally Posted by Jefff
pawn Код:
AutoCorrect(name[]) { new i = 1;
name[0] = toupper(name[0]);
while(name[i]) { name[i] = tolower(name[i]); i++; }
if((i = strfind(name,"_",true,2)) != -1 && name[i+1] != 0) name[i+1] = toupper(name[i+1]);
return name; }
usage
pawn Код:
new Nick[25]; GetPlayerName(playerid,Nick,25); AutoCorrect(Nick);
|
Dude it didn't work!!!