Help with gangster mask.
#2

PHP код:
new bool:HasBandanaAttached[MAX_PLAYERS char];
CMD:amask(playerid, params[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
    if(
HasBandanaAttached{playerid} == false)
    {
        
SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
        
HasBandanaAttached{playerid} = true;
        return 
true;
    }
    else if(
HasBandanaAttached{playerid} == true)
    {
        if(
IsPlayerAttachedObjectSlotUsed(playerid, 0))
        {
            
RemovePlayerAttachedObject(playerid, 0);
            
HasBandanaAttached{playerid} = false;
        }
    }
    return 
true;
} 
Untested
Reply


Messages In This Thread
Help with gangster mask. - by itachi - 30.05.2015, 07:13
Re: Help with gangster mask. - by rainbowPUKE - 30.05.2015, 08:30

Forum Jump:


Users browsing this thread: 1 Guest(s)