Gate Problem
#1

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)
Reply
#2

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
Reply
#3

These are 2 gates?
Reply
#4

Use MoveObject .
Reply
#5

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)

Reply
#6

refresh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)