[CMD:mask] broke itself? * Names don't disapear
#1

pawn Код:
CMD:mask(playerid, params[])
{
    if(maskid[playerid] == 0)
    {
        maskid[playerid] = 1;
        SendClientMessage(playerid, COLOR_WHITE, "You have put on a mask! (/mask again to remove it)");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 0);
        }
    }
    else if(maskid[playerid] == 1)
    {
        maskid[playerid] = 0;
        SendClientMessage(playerid, COLOR_WHITE, "You have removed your mask!");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 1);
        }
    }
    return 1;
}
Can anyone see why that is broke? What did I type wrong? Everything works? In-game messages come up, but names don't go.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)