30.05.2015, 07:13
Hello.
Please I want this mask for rcon admin.
on commad /amask.
thank ! )
Please I want this mask for rcon admin.
on commad /amask.
thank ! )
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;
}