12.05.2012, 15:12
Hallo, please help me.
But player use /stopanim then clearanimation. How i fix this, when player is cuffed then he cant use /stopanim
Код:
CMD:cuff(playerid, params[]) { new otherId ; if(sscanf(params, "u", otherId)) return SendClientMessage(playerid, COLOR_WHITE, "USE: /cuff[playerid]"); TogglePlayerControllable(otherId, 1); ClearAnimations(otherId); SetPlayerAttachedObject(otherId, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000); SetPlayerSpecialAction(otherId,SPECIAL_ACTION_CUFFED); return true; }
Код:
CMD:stopanim(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "In car can not use /lanim!"); ClearAnimations(playerid); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE); return true; }