SA-MP Forums Archive
how make to car can't explod????!!!!!!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how make to car can't explod????!!!!!!!! (/showthread.php?tid=105903)



how make to car can't explod????!!!!!!!! - Donko - 31.10.2009

can someone tell me how to make script to car can't explod for stunt server.


Re: how make to car can't explod????!!!!!!!! - Joe Staff - 31.10.2009

Just because you don't speak English, doesn't mean you can misspell words.

SetVehicleHealth(vehicleid,0x7FFFFFFE);


Re: how make to car can't explod????!!!!!!!! - [LNL]Remulis - 31.10.2009

This under includes or what ever your forwards are

forward AutoR();


under public OnGameModeInit()
SetTimer("AutoR", 1000, 1);


and add this at the bottom of your script
Quote:

public AutoR() {
for(new playerid=0; playerid<MAX_PLAYERS; playerid++) {
if(IsPlayerConnected(playerid)) {
new Float:health, cid;
if (IsPlayerInAnyVehicle(playerid)) {
cid = GetPlayerVehicleID(playerid);
GetVehicleHealth(cid, health);
if (health < 300) {
SetVehicleHealth(cid,1000);
SendClientMessage(playerid, COLOR_CYAN, "~*~ Your Car Was Auto Fixed ~*~");
}
}
}
}
return 1;
}




Re: how make to car can't explod????!!!!!!!! - KazanTip - 01.11.2009

omg