Cuffs -
Attias - 22.05.2012
I'd like to create a command with the following parameters:
/cuff [ID]
The ID which will be written, the 0.3e cuffs object will be attached to the hands of the ID.
And I'm messing up with the entire parameters thing since I'm a fresh-new "developer". Mind somebody help me please?
Re: Cuffs -
Revo - 22.05.2012
What do you have currently?
What do you use ? (dcmd, zcmd, strcmp, etc.)
More information please.
Re: Cuffs -
Attias - 22.05.2012
I don't. I deleted it P: I'm using the original Pawn command-text.
Example:
Код:
if(strcmp(cmdtext, "/day", true)==0)
{
SetPlayerTime(playerid, 10, 0);
SendClientMessage(playerid, 0xa8ff00FF, "Time changed to day, good morning then.");
return 1;
}
Re: Cuffs -
Neil. - 22.05.2012
Here is that cuff action and the cuff object
PHP код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
Re: Cuffs -
Revo - 22.05.2012
Do you have Sscanf?
Re: Cuffs -
Attias - 22.05.2012
No I don't. I just need you to create that command to attach those cuffs to the ID. /cuff 1 -> ID 1 has the cuffs object on him.
Re: Cuffs -
Attias - 22.05.2012
Anybody? :P
Re: Cuffs -
vvhy - 22.05.2012
If you already have a cuff command without 0.3e cuffs and animation I can help you, just add this to the part of the command where their TogglePlayerControllable(playerid,0);
Код:
SetPlayerSpecialAction(ID, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(ID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
and for uncuff
Код:
SetPlayerSpecialAction(ID,0);
RemovePlayerAttachedObject(ID, 0);
or just show me the command and I will insert it
Re: Cuffs -
Attias - 22.05.2012
Tried to do something. However, it still doesn't work, the object doesn't attach to the playerid and the animation doesn't apply.
http://pastebin.com/UCZ6RF30.