help 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: help Player Name (
/showthread.php?tid=570234)
help Player Name -
itachi - 06.04.2015
I help with Player Name.
if player connect to server set player in front of nick [*FP*]
example :
player nick is Test if connect to server nick Test conevrt to [*FP*] Test
Re: help Player Name -
Nicker - 06.04.2015
OnPlayerConnect,
Use
GetPlayerName to get the player's name, then use
format to add "[*FP*]" to the start of the player's name, then use
SetPlayerName to change their name.
AW: help Player Name -
Mencent - 06.04.2015
Hello!
Use strins this is a better version than you use format.
PHP код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
strins(name,"[*FP*]",0);
SetPlayerName(playerid,name);
Mencent