Player Name (+rep)
#1

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
Reply
#2

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.
Reply
#3

if my name is Theo_Gerovski how can i make it to Theo<<<<Gerovski>> show only on passport ??
Reply
#4

What is a passport?
Reply
#5

passport serves to pass the border
Reply
#6

You can't split the username but you can add any text/characters infront or after the username.
Reply
#7

how can i make it ? Please code bro
Reply
#8

help please ?
Reply
#9

well for that RP name thingy it is possible but i dont know how to script it
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)