Player Name (+rep) - 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 (+rep) (
/showthread.php?tid=494457)
Player Name (+rep) -
ScripteRMKD - 13.02.2014
Hi Scripterzzzz.I need help with make a any system for name for passport can i make name like this in passport ? Ex. My nick is SA-MP_Forums and how can i make to down set name to SA-MP<<<>>>Forums ? like this Theo Gerovski ?
http://prntscr.com/2s39au
Re: Player Name (+rep) -
SaltySandy - 13.02.2014
I'm unsure what you mean.
Do you want a command to tell you the name of SA-MP<<<>>>Forums, or what precisely are you looking for. I'm rather unsure. If it's a command you're looking for, please include what type you use. zCmd, yCmd, perhaps you use sscanf.
Re: Player Name (+rep) -
ScripteRMKD - 13.02.2014
if my name is Theo_Gerovski how can i make it to Theo<<<<Gerovski>> show only on passport ??
Re: Player Name (+rep) -
$Marco$ - 13.02.2014
What is a passport?
Re: Player Name (+rep) -
ScripteRMKD - 13.02.2014
passport serves to pass the border
Re: Player Name (+rep) -
Avi Raj - 13.02.2014
You can't split the username but you can add any text/characters infront or after the username.
Re: Player Name (+rep) -
ScripteRMKD - 13.02.2014
how can i make it ? Please code bro
Re: Player Name (+rep) -
ScripteRMKD - 13.02.2014
help please ?
Re: Player Name (+rep) -
TheFlyer - 13.02.2014
well for that RP name thingy it is possible but i dont know how to script it
Re: Player Name (+rep) -
AlonzoTorres - 13.02.2014
You would have to use str_replace from
strlib and replace the underline with <<<>>> like so:
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
str_replace("_", "<<<>>>", playerName);
Then you would use
PlayerTextDrawSetString,
PlayerTextDrawHide and
PlayerTextDrawShow. You should also use that str_replace at the time you set the TextDraw's string or save it to a variable.