07.07.2009, 23:02
forward CarExplosion(vehicleid);
public OnGameModeInit()
SetTimer("CarExplosion",1000,1);
public CarExplosion(vehicleid)
{
new Floatcx, Floatcy, Floatcz;
new Float:abcd;
GetVehicleHealth(vehicleid, abcd);
if(abcd > 30.0)
GetVehiclePos(vehicleid,scx, scy, scz);
CreateExplosion(scx+1,scy+1,scz+1,6,100);
return 1;
}
Doesnt work, how?
public OnGameModeInit()
SetTimer("CarExplosion",1000,1);
public CarExplosion(vehicleid)
{
new Floatcx, Floatcy, Floatcz;
new Float:abcd;
GetVehicleHealth(vehicleid, abcd);
if(abcd > 30.0)
GetVehiclePos(vehicleid,scx, scy, scz);
CreateExplosion(scx+1,scy+1,scz+1,6,100);
return 1;
}
Doesnt work, how?