0.3e Cuff Question
#1

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 .. !!
Reply
#2

Wrong - Delete.
Reply
#3

whats the object id
Reply
#4

My bad - really sorry

Fix :
PHP код:
RemovePlayerAttachedObject(playeridindex
Reply
#5

no problem man .. thanks for helping .. Here take ur rep +1 .. Please Rep me back .. !!
Reply
#6

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.
Reply
#7

https://sampforum.blast.hk/showthread.php?pid=1914919#pid1914919
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)