How can I do /name on and /name off? - 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: How can I do /name on and /name off? (
/showthread.php?tid=190884)
How can I do /name on and /name off? -
Ehab1911 - 17.11.2010
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?
Re: How can I do /name on and /name off? -
HotRod - 17.11.2010
What you do is, goto wiki and learn to script, or steal it off gf like a noob.
Have a good day.
Re: How can I do /name on and /name off? -
Scenario - 17.11.2010
Simple, use variables and the "SetPlayerName()" function. More details can be found on the Wiki.
Re: How can I do /name on and /name off? -
Kitten - 17.11.2010
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
Re: How can I do /name on and /name off? -
Ehab1911 - 17.11.2010
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.