#1

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?
Reply
#2

What do you have currently?
What do you use ? (dcmd, zcmd, strcmp, etc.)

More information please.
Reply
#3

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;
    }
Reply
#4

Here is that cuff action and the cuff object

PHP код:
SetPlayerSpecialAction(playeridSPECIAL_ACTION_CUFFED);
    
SetPlayerAttachedObject(playerid0194186, -0.0110000.028000, -0.022000, -15.600012, -33.699977, -81.7000350.8919991.0000001.168000); 
Reply
#5

Do you have Sscanf?
Reply
#6

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

Anybody? :P
Reply
#8

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)