[Ajuda] Definiзгo de veнculo capotado - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Definiзгo de veнculo capotado (
/showthread.php?tid=383614)
Definiзгo de veнculo capotado -
Brendon_Pawn - 08.10.2012
Olб gostaria de saber se tem como definir quando um veнculo estб capotado.
tipo um... colocando uma settimer isso identificaria automaticamente se o veiculo esta capotado ou nao.
forward Capotado();
public Capotado()
{
...
return 1;
}
Re: Definiзгo de veнculo capotado -
GTO.DoDo - 08.10.2012
Re: Definiзгo de veнculo capotado -
Schocc - 08.10.2012
han oque? fume sua m4c0n74 depois de perguntar pelo menos eu faзo assim ^^
Explique melhor se for o caso do angulo como dodostyle ja disse
PHP код:
GetVehicleZAngle(vehicleid,Float:z);
Re: Definiзгo de veнculo capotado -
zSuYaNw - 08.10.2012
PHP код:
public OnPlayerUpdate(playerid){
if(IsPlayerInAnyVehicle(playerid0)){
static
Float:Quat[2],
Check
;
GetVehicleRotationQuat(GetPlayerVehicleID(playerid), Quat[0], Quat[1], Quat[0], Quat[0]);
Check = (Quat[1] >= 0.60 || Quat[1] <= -0.60);
if(Check){
SendClientMessage(playerid, -1, "Seu veiculo estб capotado.");
}
}
return true;
}
Agradecimentos a CyNiC pela funзгo "IsVehicleNeedingFlip".