vehicle health
#2

PHP код:
else if(!strcmp(params"park"true4))
     {
         if(
GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playeridCOLOR_LIGHTRED"You are not inside any vehicle.");
        new 
vehicleid GetPlayerVehicleID(playerid);
        new 
id GetVehicleID(vehicleid);
        if(
GetPlayerVehicleAccess(playeridid) < 1)
        return 
SendClientMessage(playeridCOLOR_LIGHTRED"You don't have the keys for this vehicle.");
          new 
Float:xFloat:yFloat:z,Float:carhealth;
        
GetPlayerPos(playeridxyz);
        
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
        
SetVehicleParamsEx(vehicleid0000000);
        
GetVehicleHealth(idcarhealth);
        
VehicleHealth[id] = carhealth;
        
GetVehiclePos(VehicleID[id], VehiclePos[id][0], VehiclePos[id][1], VehiclePos[id][2]);
        
GetVehicleZAngle(VehicleID[id], VehiclePos[id][3]);
        
VehicleInterior[id] = GetPlayerInterior(playerid);
        
VehicleWorld[id] = 100;
        
SaveVehicle(id); 
Try
Reply


Messages In This Thread
vehicle health - by alexanderjb918 - 24.10.2015, 10:36
Re : vehicle health - by StreetRP - 24.10.2015, 10:45
Re : vehicle health - by alexanderjb918 - 24.10.2015, 10:50
Re : vehicle health - by StreetRP - 24.10.2015, 10:54
Re: vehicle health - by PrO.GameR - 24.10.2015, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)