Helmet problem
#2

To remove attached object, you have to use the RemovePlayerAttachedObject() function, calling again SetPlayerAttachedObject() won't work.

pawn Код:
if (strcmp(cmd, "/helmet", true) == 0) {
    if (IsPlayerAttachedObjectSlotUsed(playerid, 3))
        RemovePlayerAttachedObject(playerid, 3);
    else
        SetPlayerAttachedObject(playerid, 3, 18645, 2, 0.07, 0.017, 0, 88, 75, 0);
    return 1;
}
Reply


Messages In This Thread
Helmet problem - by Dan_Barocu - 18.02.2012, 11:53
Re: Helmet problem - by Nonameman - 18.02.2012, 12:18

Forum Jump:


Users browsing this thread: 1 Guest(s)