11.05.2010, 14:53
Nada Disso, o erro que que ao Apertar "g" no hydra ele nгo vai para Carona e Sim Da SPEC NO HYDRA
Olhem
Olhem
pawn Код:
if (GetVehicleModel(PlayerHydra[playerid]) == 520)
{
new vehicleid = PlayerHydra[playerid];
if (IsInHydra[playerid] == true)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
TogglePlayerSpectating(playerid, false);//EM MODO SPEC
new Float:X,Float:Y,Float:Z,Float:A;
GetVehiclePos(vehicleid, X, Y, Z);//POS
GetVehicleZAngle(vehicleid, A);//PEGARA ANGULO HYDRA
X += (2 * floatsin(-A, degrees));
Y += (2 * floatcos(-A, degrees));
SetPlayerPos(playerid, X, Y, Z);
X += (2 * floatsin(-(A-45.0), degrees));
Y += (2 * floatcos(-(A-45.0), degrees));
SetPlayerPos(playerid, X, Y, Z);//SETARA POS
SetPlayerFacingAngle(playerid, A);
SetCameraBehindPlayer(playerid);
IsInHydra[playerid] = false;
PlayerHydra[playerid] = 0;