PDA

View Full Version : Help /Maskon


[Headless]
09/10/2011, 10:15 AM
Is there something wrong with this?
When I /maskon the name above the player is on and not hidden
if(strcmp(cmd, "/maskon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMask] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "** You don't have a mask");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "** You are not able to use it.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowNameTags( 0 );
}
}

=WoR=G4M3Ov3r
09/10/2011, 11:05 AM
ShowPlayerNameTagForPlayer(playerid, i, false);

instead of

ShowNameTags( 0 );

[Headless]
09/10/2011, 12:43 PM
ShowPlayerNameTagForPlayer(playerid, i, false);

instead of

ShowNameTags( 0 );

Thank-you very much +1 rep