30.07.2013, 15:59
Hi!
/hat command is working, but /removehat doesnt work. Can u explain me the problem?
And can u help me, how to destroey the object when player is dead?
/hat command is working, but /removehat doesnt work. Can u explain me the problem?
Код:
new = hat;
COMMAND:hat(playerid, params[])
{
hat = CreateObject(19352, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(hat, playerid, 0, 0, 0.95, 0.0, 0, 90);
SendClientMessage(playerid, 0xFFFFFFFF,"Hat mode: on");
return 1;
}
COMMAND:removehat(playerid, params[])
{
RemovePlayerAttachedObject(playerid, hat);
SendClientMessage(playerid, 0xFFFFFFFF,"Hat mode: off");
return 1;
}

