PDA

View Full Version : Would my code hide names?


MusicBeast
12/10/2011, 01:40 PM
Hello, I've scripted this code using YCMD, Would it hide Name tags?

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

Kingunit
12/10/2011, 02:10 PM
It's copied from the wiki, so yes.

MusicBeast
12/10/2011, 03:22 PM
Yup. Thank you.