SA-MP Forums Archive
Gate Problem - 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: Gate Problem (/showthread.php?tid=454718)



Gate Problem - Gold_Master - 30.07.2013

can some one help me i made a gate with CMD /hitmano to open and /hitmanc to close can some one fix it?

Код HTML:
if(strcmp(cmd,"/hitmano",true)==0)
	{
	    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
	    {
			MoveDynamicObject(stckapija1, 980,2185.0000000,-1767.0999800,12.9000000,3.0000000,0.0000000,0.0000000);
			SendClientMessage(playerid, COLOR_WHITE, "{6EF83C}INFO:{FFFFFF}Ja otvorivte bazata.");
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne si clen.");
		}
		return 1;
	}
	if(strcmp(cmd,"/hitmanc",true)==0)
	{
	    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
	    {
			MoveDynamicObject(stckapija, 980,2185.0000000,-1767.0999800,12.9000000,3.0000000,0.0000000,0.0000000);
			SendClientMessage(playerid, COLOR_WHITE, "{6EF83C}INFO:{FFFFFF}Ja zatvori bazata.");
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne si clen.");
		}
		return 1;
	}
Код:
UP
stckapija = CreateObject(980,2185.0000000,-1767.0999800,12.9000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (1)


down
stckapija1 = CreateObject(980,2185.0000000,-1767.0999800,7.1000000,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)



Re: Gate Problem - niconhan - 30.07.2013

Hello, problem here:
-You created gate with CreateObject fuction
-But you use a MoveDynamicObject to move it. Please edit CreateObject to CreateDynamicObject and use Streamer Plugin


Re: Gate Problem - PrinceKumar - 30.07.2013

These are 2 gates?


Re: Gate Problem - nor15 - 30.07.2013

Use MoveObject .


Re: Gate Problem - Gold_Master - 30.07.2013

how to make gate with open close command?

the cordinates

Quote:

UP
stckapija = CreateObject(980,2185.0000000,-1767.0999800,12.9000000,0.0000000,0.0000000,0.0000 000); //object(airportgate) (1)


down
stckapija1 = CreateObject(980,2185.0000000,-1767.0999800,7.1000000,0.0000000,0.0000000,0.00000 00); //object(airportgate) (2)




Re: Gate Problem - Gold_Master - 30.07.2013

refresh