SA-MP Forums Archive
[CMD:mask] broke itself? * Names don't disapear - 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: [CMD:mask] broke itself? * Names don't disapear (/showthread.php?tid=414191)



[CMD:mask] broke itself? * Names don't disapear - UnknownGamer - 08.02.2013

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.