Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
How could I make so when a player does /mask it sets there name to Stranger 1/2/3/4/etc..
and also, when they /unmask there names go back to normal? Thanks in advance.
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
/mask
Save the name in a pvar of array
Change the player name to StrangerUNIQUEID also StrangerPLAYERID
/unmask
Give the old name back which is stored
The only problem I see is that someone could rejoin the server with your real name!
But that can be prevented if you add a check in OnPlayerUpdate if the name is saved
Max_Coldheart
Unregistered
pawn Код:
new playermask[MAX_PLAYERS];
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
I put that, already.. It was because of the =, it was supposed to be two =='s Thanks anyway.