how make to car can't explod????!!!!!!!!
#1

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

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

SetVehicleHealth(vehicleid,0x7FFFFFFE);
Reply
#3

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;
}

Reply
#4

omg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)