SA-MP Forums Archive
Would my code hide names? - 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)
+--- Thread: Would my code hide names? (/showthread.php?tid=289632)



Would my code hide names? - MusicBeast - 12.10.2011

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;
}



Re: Would my code hide names? - Kingunit - 12.10.2011

It's copied from the wiki, so yes.


Re: Would my code hide names? - MusicBeast - 12.10.2011

Yup. Thank you.