SA-MP Forums Archive
Little mask command 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little mask command help (/showthread.php?tid=123714)



Little mask command help - Str8Deadly - 26.01.2010

Basically, when you type /maskon, your name tag has to change to "Masked Player"
Now, how do I make it so the initial name reappears when after typing /maskoff?

Thanks for the help


Re: Little mask command help - gotenks918 - 26.01.2010

If your using a RP script i suppose you could grab there name from their file or a database or w/e or save it to a variable before changing it to masked player


Re: Little mask command help - Backwardsman97 - 27.01.2010

You could try something like this.

pawn Код:
new Name[MAX_PLAYERS][24];

//OnPlayerConnect
new name[24];
GetPlayerName(playerid,name,24);
format(Name[playerid],24,"%s",name);
Untested but it should store their name when they connect and then you could just use it afterwards. You could format their name right before you changed it if you really wanted to. I don't really see the advantages of it though.