Godmode for some cars
#10

Код:
forward IsAGodCars(carid);

new GodCars1(carid);
new GodCars2(carid);

public IsAGodCars(carid)
{
       if(carid == GodCars1 || carid == GodCars2)
  	{
		return 1;
	}
	return 0;
}

Ongamemodeinit:

       GodCars1 = CreateVehicle(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20,300000); // infe lv
	GodCars2 = CreateVehicle(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20,300000); // infe lv 1


public OnVehicleSpawn(vehicleid)
{
   if(IsAGodCars(vehicleid))
   {
   	DestroyVehicle(vehicleid);
 		if(vehicleid == GodCars1)
 	  {CreateVehicle(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20,300000); }
 		else if(vehicleid == GodCars2)
 	  {CreateVehicle(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20,300000);}
   	SetVehicleHealth(vehicleid, 2000); // Set Car HP 2000
	 }
   return 1;
}
It's work but only after first car death, I try put SetVehicleToRespawn(GodCars1); ongamemodeinit but it's not work
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)