Attached Object!
#1

Hey, i got add command for attached object, but how to i remove ? i readed alredy WIKI, but didnt understand though.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Adding Bag

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;
Removing Bag

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;
}
but it ofc dont work... any can help ?
Reply


Messages In This Thread
Attached Object! - by BodyBoardVEVO - 13.08.2013, 23:15
Re: Attached Object! - by Youarex - 14.08.2013, 00:00
Re: Attached Object! - by Drebin - 14.08.2013, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)