Posts: 377
Threads: 78
Joined: Dec 2009
Hai, I wanna ask you If you can make to me or help me making the commands /name on/off. It will turn your name into Stranger. It's like the Mask System, but /name on and /name off.
Ehab: Howdy, how are you?
if /name on:
Stranger: Howdy, how are you?
Posts: 60
Threads: 11
Joined: Oct 2010
What you do is, goto wiki and learn to script, or steal it off gf like a noob.
Have a good day.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Simple, use variables and the "SetPlayerName()" function. More details can be found on the Wiki.
Posts: 377
Threads: 78
Joined: Dec 2009
Quote:
Originally Posted by Kitten
pawn Код:
if (strcmp("/nameoff", cmdtext, true) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, false); } GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5); return 1; } if (strcmp("/nameon", cmdtext, true) == 0) { for(new i = 1; i < MAX_PLAYERS; i++) { ShowPlayerNameTagForPlayer(playerid, i, true); } GameTextForPlayer(playerid, "~W~Nametags ~G~on", 5000, 5); return 1; }
EDIT: this is one of my old codes in my freeroam gamemodes.
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
|
Ohh, Thanks a lot for this help! I'll use it!
Reply @ the other replies: I won't steal anything mate
, I prefer to learn.