Help With RemovePlayerAttachedObject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With RemovePlayerAttachedObject (
/showthread.php?tid=332116)
Help With RemovePlayerAttachedObject -
BigBaws - 07.04.2012
hello guys im making a simple commande for exemple when you use /call it attaching a phone to your hand
SetPlayerAttachedObject(playerid, 6, 18865, 6, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
the probleme is i dont know how to remove it when i do /hangup
RemovePlayerAttachedObject (playerid, 18865); ??
thanks for the answer
Re: Help With RemovePlayerAttachedObject -
Harish - 07.04.2012
pawn Код:
new phone = SetPlayerAttachedObject(playerid, 6, 18865, 6, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, phone);
Re : Help With RemovePlayerAttachedObject -
BigBaws - 07.04.2012
it dsnt working
Re: Help With RemovePlayerAttachedObject -
Harish - 07.04.2012
pawn Код:
SetPlayerAttachedObject(playerid, 6, 18865, 6, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
if(IsPlayerAttachedObjectSlotUsed(playerid, 6)) RemovePlayerAttachedObject(playerid, 6);
sorry i made mistake remove works with its slot index only where 6 is the index of your object