Little mask command help
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)