Command mask bugged [help pleasee]
#2

Код:
//add pMasked and pMask to your enum pInfo
COMMAND:mask(playerid, var[])
{
	new string[128];
    if(!Logged(playerid)) return NoLogin(playerid);
    if(PlayerInfo[playerid][admin] || PlayerInfo[playerid][premiumgold] || PlayerInfo[playerid][playerfaction]==FBI || PlayerInfo[playerid][playerlvl]>= 15)
    {
		Player[playerid][pMasked] = 1;
        format(string, sizeof(string), "* %s has put his mask on his face.", GetName(playerid));
     	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
     	for(new i = 0; i < MAX_PLAYERS; i++)
		{
			ShowPlayerNameTagForPlayer(i, playerid, false);
		}
    }
    else
    {
        Player[playerid][pMasked] = 0;
        format(string, sizeof(string), "* Stranger has removed the mask from his face.");
     	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
     	for(new i = 0; i < MAX_PLAYERS; i++)
		{
			ShowPlayerNameTagForPlayer(i, playerid, true);
		}
    }
    return 1;
}
I've completely wiped it and re-made it. Hope it's okay.

give me some rep m8
Reply


Messages In This Thread
Command mask bugged [help pleasee] - by ThatFag - 05.03.2016, 21:41
Re: Command mask bugged [help pleasee] - by iKevin - 05.03.2016, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)