- 0
Problema Insurance car
-
Similar Content
-
- 0 replies
- 506 views
-
- 1 answer
- 371 views
-
- 8 answers
- 809 views
-
- 1 reply
- 1.378 views
-
Problema billboards (la expirarea billboard-ului nu seteaza variabila Billboard 0 jucatorului offline)
By cstef4n,
- 2 answers
- 554 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

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