SetPlayerAttachedObject Not showing object ?
#6

No, because then if you already had an object attached, it would never spawn the vest...

pawn Код:
CMD:attachvest(playerid,params[])
{
    if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
    {
        RemovePlayerAttachedObject(playerid, 0);
        SetPlayerAttachedObject(playerid, 0, 19142, 1, 0.07998, 0.03999, 0.0, 0.0, 0.0, 0.0, 1, 1, 1);
        return 1;
    }
    SetPlayerAttachedObject(playerid, 0, 19142, 1, 0.07998, 0.03999, 0.0, 0.0, 0.0, 0.0, 1, 1, 1);
    return 1;
}
If this doesn't work, most likely nothing will. It may be due to objects, make sure you use a streamer.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)