How can I do /name on and /name off?
#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


Messages In This Thread
How can I do /name on and /name off? - by Ehab1911 - 17.11.2010, 02:59
Re: How can I do /name on and /name off? - by HotRod - 17.11.2010, 03:05
Re: How can I do /name on and /name off? - by Scenario - 17.11.2010, 03:26
Re: How can I do /name on and /name off? - by Kitten - 17.11.2010, 03:27
Re: How can I do /name on and /name off? - by Ehab1911 - 17.11.2010, 11:06

Forum Jump:


Users browsing this thread: 3 Guest(s)