[Ajuda] Meio noob
#6

Tenta Assim agora

pawn Код:
forward Carro(playerid,vehicleid,VidaDoVeiculoDonSpeed);
public Carro(playerid,vehicleid,VidaDoVeiculoDonSpeed)
{
   new Float:VidaDoVeiculoDonSpeed;
   new veh;
   veh = GetPlayerVehicleID(playerid);
   GetVehicleHealth(veh, VidaDoVeiculoDonSpeed);
   new engine, lights, alarm, doors, bonnet, boot, objective;
   if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   {
       if(VidaDoVeiculoDonSpeed < 10)
       {
           if(IsPlayerInAnyVehicle(playerid))
           {
               TogglePlayerControllable(playerid, 0);
               GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
               SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective);
           }
       }
       if(VidaDoVeiculoDonSpeed > 10)
       {
           if(IsPlayerInAnyVehicle(playerid))
           {
               TogglePlayerControllable(playerid, 1);
               GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
               SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
           }
       }
   }
   return true;
}
Reply


Messages In This Thread
Meio noob - by Don_Speed - 21.08.2012, 22:36
Re: Meio noob - by iReflesh - 21.08.2012, 22:39
Re: Meio noob - by Maklister - 21.08.2012, 22:42
Re: Meio noob - by Don_Speed - 21.08.2012, 22:46
Re: Meio noob - by iReflesh - 21.08.2012, 22:49
Re: Meio noob - by Maklister - 21.08.2012, 22:55
Re: Meio noob - by Don_Speed - 21.08.2012, 22:57
Re: Meio noob - by iReflesh - 21.08.2012, 22:57
Re: Meio noob - by Don_Speed - 21.08.2012, 23:07
Re: Meio noob - by Maklister - 21.08.2012, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)