- 0
Problema Insurance car
-
Similar Content
-
- 2 answers
- 185 views
-
Problema turf
By Soryn.,
- 3 answers
- 288 views
-
- 1 reply
- 184 views
-
- 9 replies
- 90 views
-
Problema
By ImJustSlim,
- 3 answers
- 287 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;
}
Link to comment
Share on other sites
26 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.