SA-MP Forums Archive
wars tanks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: wars tanks (/showthread.php?tid=580048)



wars tanks - JoshNudock - 02.07.2015

Today I went on a server and then immediately I saw that the gamemode wars tanks are destroyed easily, I wanted to know how to change it ..


Re: wars tanks - JaydenJason - 02.07.2015

Код:
public OnGameModeInit()
{
	new tank; // local variable (i don't think you're using this later anyways, if so move it up to your other variables)
	
	tank = CreateDynamicVehicle(433, x, y,z, angle, 0, 0); // we're assigning the rhino to a variable to save its vehicleid, fill in your own pos/angle here
	SetVehicleHealth(tank, 4000.0); // setting rhino health to 4000 so it doesnt get destroyed easily
	
	return 1;
}