Can't solve this
#3

pawn Код:
CMD:mask(playerid)
{
        if(Masked[playerid] == 0)
        {
            Masked[playerid] = 1;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                ShowPlayerNameTagForPlayer(i, playerid, 0);
                ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
                SetPlayerAttachedObject(playerid, 1, 19037, 2, 10, 4.7, 0.0, 90, 90, 0);
            }
            SendClientMessage(playerid, COLOR_LIGHTGREEN, "You put your Mask on!");
            return 1;
        }
        else if(Masked[playerid] == 1)
        {
            Masked[playerid] = 0;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                ShowPlayerNameTagForPlayer(i, playerid, 1);
            }
            SendClientMessage(playerid, COLOR_LIGHTGREEN, "You took your Mask off!");
            return 1;
        }
        return 1;
}
For now I made this, will this work? even if new players connect will player's name be hiden?
Reply


Messages In This Thread
Can't solve this - by Lajko1 - 08.10.2013, 16:49
Re: Can't solve this - by iFiras - 08.10.2013, 16:59
Re: Can't solve this - by Lajko1 - 08.10.2013, 17:04
Re: Can't solve this - by iFiras - 08.10.2013, 17:09
Re: Can't solve this - by Lajko1 - 08.10.2013, 17:14
Re: Can't solve this - by Lajko1 - 09.10.2013, 11:40
Re: Can't solve this - by Shoulen - 09.10.2013, 12:32
Re: Can't solve this - by Lajko1 - 09.10.2013, 15:09
Re: Can't solve this - by Lajko1 - 09.10.2013, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)