How can I do /name on and /name off?
#1

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

What you do is, goto wiki and learn to script, or steal it off gf like a noob.

Have a good day.
Reply
#3

Simple, use variables and the "SetPlayerName()" function. More details can be found on the Wiki.
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)