Would my code hide names?
#1

Hello, I've scripted this code using YCMD, Would it hide Name tags?

pawn Код:
YCMD:nameoff(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
    GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
    return 1;
}
YCMD:nameon(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
    GameTextForPlayer(playerid, "~W~Nametags ~R~on", 5000, 5);
    return 1;
}
Reply
#2

It's copied from the wiki, so yes.
Reply
#3

Yup. Thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)