13.08.2013, 23:15
Hey, i got add command for attached object, but how to i remove ? i readed alredy WIKI, but didnt understand though.
Adding Bag
Removing Bag
but it ofc dont work... any can help ?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
if (strcmp("/bag", cmdtext, true, 10) == 0)
{
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
return 1;
}
return 0;
pawn Код:
{
if(!strmp(cmdtext, "/removebag", true))
{
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
}
return 1;
}
}
return 0;
}