how make to car can't explod????!!!!!!!!
#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


Messages In This Thread
how make to car can't explod????!!!!!!!! - by Donko - 31.10.2009, 18:08
Re: how make to car can't explod????!!!!!!!! - by Joe Staff - 31.10.2009, 18:27
Re: how make to car can't explod????!!!!!!!! - by [LNL]Remulis - 31.10.2009, 18:28
Re: how make to car can't explod????!!!!!!!! - by KazanTip - 01.11.2009, 07:28

Forum Jump:


Users browsing this thread: 1 Guest(s)