20.09.2010, 16:50
It is there any way to make bikes to have lesser health? to be destoyed easily...and increase tank health....
public OnVehicleSpawn(vehicleid)
{ if(GetVehicleModel(vehicleid)== 463) { SetVehicleHealth(vehicleid,10); } } Well no errors no warnings, but also not working D=...i just wanted to make bikes to instant explode when hit just to test if i did it correctly, when done i will set the health to 500 or something to make them be weak than cars...cuz actually bikes are godly :S.... |
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(GetVehicleModel(vehicleid)== 463)
{
SetVehicleHealth(vehicleid,10);
}
return 1;
}
pawn Код:
|
public OnFilterScriptInit()
{
new Spawn[] = {210, 232, 344, 318}; // Vehicle IDs to respawn
for(new i; i < sizeof Spawn; i++)
{
SetVehicleToRespawn(Spawn[i]);
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == 210) // 210 is the vehicles ID
{
SetVehicleHealth(210, 350); // Vehicles blow up around 250-270, so 350 is fairly low
return 1;
}
return 1;
}