Godmode for some cars
#7

Quote:
Originally Posted by Schock
wont work i addet it like this:
Код:
new GodCars[6];
Код:
    GodCars[0] = AddStaticVehicleEx(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20); // infe lv
	GodCars[1] = AddStaticVehicleEx(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20); // infe lv 1
	GodCars[2] = AddStaticVehicleEx(411,1501.4204,1174.0099,326.1299,359.5850,106,1, 20); // infe lv
	GodCars[3] = AddStaticVehicleEx(411,1495.9490,1173.9745,326.1282,359.8535,80,1, 20); // infe lv
	GodCars[4] = AddStaticVehicleEx(411,1492.8213,1174.0062,326.1282,359.4546,75,1, 20); // infe lv
	GodCars[5] = AddStaticVehicleEx(411,1489.5162,1173.9971,326.1259,0.3766,12,1, 20); // infe lv
Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == GodCars[0])
{
	SetVehicleHealth(GodCars[0], 100000);
}
if(vehicleid == GodCars[1])
{
	SetVehicleHealth(GodCars[1], 100000);
}
if(vehicleid == GodCars[2])
{
  	SetVehicleHealth(GodCars[2], 100000);
}
if(vehicleid == GodCars[3])
{
  	SetVehicleHealth(GodCars[3], 100000);
}
if(vehicleid == GodCars[4])
{
  	SetVehicleHealth(GodCars[4], 100000);
}
if(vehicleid == GodCars[5])
{
  	SetVehicleHealth(GodCars[5], 100000);
}
}
That's why I put the health part under OnGameModeInit.
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: 2 Guest(s)