25.09.2012, 01:05
No, because then if you already had an object attached, it would never spawn the vest...
If this doesn't work, most likely nothing will. It may be due to objects, make sure you use a streamer.
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;
}