0.3e Cuff Question - 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: 0.3e Cuff Question (
/showthread.php?tid=350121)
0.3e Cuff Question -
Michael_Cruise - 11.06.2012
As far I know that this is the code to place the cuff object
Код:
SetPlayerAttachedObject(ID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
But whats the code to remove it .. Please don't say wiki .. Just say the answer .. I will help me to understand better .. !!
Re: 0.3e Cuff Question -
Black Axe - 11.06.2012
Wrong - Delete.
Re: 0.3e Cuff Question -
Michael_Cruise - 11.06.2012
whats the object id
Re: 0.3e Cuff Question -
Black Axe - 11.06.2012
My bad - really sorry
Fix :
PHP код:
RemovePlayerAttachedObject(playerid, index)
Re: 0.3e Cuff Question -
Michael_Cruise - 11.06.2012
no problem man .. thanks for helping .. Here take ur rep +1 .. Please Rep me back .. !!
Re: 0.3e Cuff Question -
[NWA]Hannes - 11.06.2012
Quote:
Originally Posted by Michael_Cruise
whats the object id
|
The object id for cuffs is
19418.
Quote:
Originally Posted by Michael_Cruise
Please Rep me back .. !! 
|
Hello, Welcome to the SA-MP forums, Do not ask or beg for reputation here. People will rep you if they find your thread/post useful, and asking for reputation is considered "noobish".
pawn Код:
SetPlayerAttachedObject(ID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
The second param here, after "ID" and before "19418", is the index param. Here you put a number between 0 - 9.
In this case, you have put 0 as index.
If you want to remove the cuffs, use the
RemovePlayerAttachedObject(playerid, index); function, where playerid is the id to remove the attached object from, and index is the index used in SetPlayerAttachedObject.
So if you want to remove the cuffs created with
pawn Код:
SetPlayerAttachedObject(ID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
Then you should use
pawn Код:
RemovePlayerAttachedObject(ID, 0);
EDIT: Damn was way too slow.
Re: 0.3e Cuff Question -
MP2 - 11.06.2012
https://sampforum.blast.hk/showthread.php?pid=1914919#pid1914919