Exaton Posted February 26, 2018 Posted February 26, 2018 Salut am si eu o mica problema cand bubui masina nu imi creste insul dc? public OnVehicleDeath(vehicleid) { new engine,lights,alarm,doors,bonnet,boot,objective; vehEngine[vehicleid] = 0; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); if(IsAnOwnableCar(vehicleid)) { foreach(new i : Player) { for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[pCarID][v] == vehicleid) { PlayerInfo[pCarHP][v] = 1000.0; if(PlayerInfo[pCarIns][v] != 0) { PlayerInfo[pCarIns][v]--; } cUpdate(i, v, cInsurancecarx); cUpdate(i, v, cKMx); cUpdate(i, v, cHPx); } } } } if(Destroycar == 1) { if(Carspawn[vehicleid] != 0) { DestroyVehicle(Carspawn[vehicleid]); Carspawn[vehicleid] = 0; } } StopAudioStreamForPlayersInCar(vehicleid); return 1; }
0 Liviut Posted March 26, 2018 Posted March 26, 2018 La 26.02.2018 la 16:46, Exaton a spus: new engine,lights,alarm,doors,bonnet,boot,objective,PlayerInfo; Esti paralel)))))))
Question
Exaton
Salut am si eu o mica problema cand bubui masina nu imi creste insul dc?
public OnVehicleDeath(vehicleid)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
vehEngine[vehicleid] = 0;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
if(IsAnOwnableCar(vehicleid))
{
foreach(new i : Player)
{
for(new v; v < MAX_PERSONAL_VEHICLES; v++)
{
if(PlayerInfo[pCarID][v] == vehicleid)
{
PlayerInfo[pCarHP][v] = 1000.0;
if(PlayerInfo[pCarIns][v] != 0)
{
PlayerInfo[pCarIns][v]--;
}
cUpdate(i, v, cInsurancecarx);
cUpdate(i, v, cKMx);
cUpdate(i, v, cHPx);
}
}
}
}
if(Destroycar == 1)
{
if(Carspawn[vehicleid] != 0)
{
DestroyVehicle(Carspawn[vehicleid]);
Carspawn[vehicleid] = 0;
}
}
StopAudioStreamForPlayersInCar(vehicleid);
return 1;
}
26 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now