Godmode for some cars
#2

Just do like
pawn Код:
new GodCars[6];

//OnGameModeInit
GodCars[0] = AddStaticVehicle(Blah blahj blah);
GodCars[1] = AddStaticVehicle(Blah blahj blah);
GodCars[2] = AddStaticVehicle(Blah blahj blah);
//etc...

SetVehicleHealth(GodCars[0], 100000);
SetVehicleHealth(GodCars[1], 100000);
SetVehicleHealth(GodCars[2], 100000);
//etc...

//OnVehicleSpawn
if(vehicleid == GodCars[0])
{
  SetVehicleHealth(GodCars[0], 100000);
}
if(vehicleid == GodCars[1])
{
  SetVehicleHealth(GodCars[1], 100000);
}

//etc...
The vehicles will be really hard to blow up. Even if they do it will be reset when they spawn.
Reply


Messages In This Thread
Godmode for some cars - by Schock - 11.01.2009, 18:30
Re: Godmode for some cars - by Backwardsman97 - 11.01.2009, 18:44
Re: Godmode for some cars - by Schock - 11.01.2009, 19:15
Re: Godmode for some cars - by Joe Staff - 11.01.2009, 19:33
Re: Godmode for some cars - by Shadowww - 11.01.2009, 20:06
Re: Godmode for some cars - by Shadowww - 11.01.2009, 20:09
Re: Godmode for some cars - by Backwardsman97 - 11.01.2009, 20:40
Re: Godmode for some cars - by Schock - 11.01.2009, 20:42
Re: Godmode for some cars - by Backwardsman97 - 12.01.2009, 00:35
Re: Godmode for some cars - by vazelin05 - 26.07.2009, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)