SA-MP Forums Archive
/cuff command for 0.3e - 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: /cuff command for 0.3e (/showthread.php?tid=373657)



/cuff command for 0.3e - kbalor - 31.08.2012

The cuff works but the animation won't and the cuff object only cuffs my right hand. Why is this happening?

Cuf command in here.
https://sampforum.blast.hk/showthread.php?tid=367237

pawn Код:
dcmd_cuff(playerid, params[])
{
    #pragma unused params
    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);
    return 1;
}
dcmd_uncuff(playerid, params[])
{
    #pragma unused params
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
    }
    return 1;
}



Re: /cuff command for 0.3e - romas3110 - 31.08.2012

pawn Код:
SetPlayerSpecialAction(playerid,24);