27.12.2013, 23:00
Em OnPlayerKeyStateChange(playerid, newkeys, oldkeys) vocк coloca isso aki \/
No comando /algemar coloca isso aki dentro do comando
OBS: Acertar a variavel "giveplayerid" para variavel que defini o player algemado. E no comando /prender add isso aqui \/
PHP код:
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED)
{
ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
}
PHP код:
if(IsPlayerInAnyVehicle(giveplayerid))
{
ApplyAnimation(giveplayerid,"ROB_BANK","SHP_HandsUp_Scr",4.1,0,1,1,1,1);
ApplyAnimation(giveplayerid,"ROB_BANK","SHP_HandsUp_Scr",4.1,0,1,1,1,1);
TogglePlayerControllable(giveplayerid, 0);
RemovePlayerAttachedObject(giveplayerid, 8);
}
else
{
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
SetPlayerAttachedObject(giveplayerid, 8, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
}
PHP код:
RemovePlayerAttachedObject(giveplayerid, 8);