How to set moving gates
#1

Hello everyone,
a friend of me have make for me Gates on police department. but i dont know how to change it from place

in Los Santos u get a wall when the climb over the can enter the police garage so i want my gate before the inside of the garage, Can u help me please here u get the script code.

Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
	new Float:oldposx, Float:oldposy, Float:oldposz, Float:tempposx, Float:tempposy, Float:tempposz;
	GetPlayerPos(playerid, oldposx, oldposy, oldposz);
	tempposx = (oldposx -x);
	tempposy = (oldposy -y);
	tempposz = (oldposz -z);
	if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
	return 0;
}

public OpenPoliceDepartmentGate()
{  if(pdebug == 1){print("[DEBUG] OpenPoliceDepartmentGate()");}

  if(city == 1){MoveObject(GatePD, 1539.709717, -1627.873047, 8.057503, 2.0);}
	if(city == 2){MoveObject(GatePD, -1571.661133, 656.477478, 6.354377, 2.0);}
	return 1;
}
public ClosePoliceDepartmentGate()
{  if(pdebug == 1){print("[DEBUG] ClosePoliceDepartmentGate()");}

  if(city == 1){MoveObject(GatePD, 1539.709717, -1627.873047, 14.057503, 2.0);}
	if(city == 2){MoveObject(GatePD, -1571.661133, 665.627869, 6.354377, 2.0);}
	return 1;
}
Reply


Messages In This Thread
How to set moving gates - by Mkb122 - 06.11.2009, 18:57
Re: How to set moving gates - by Luka P. - 06.11.2009, 18:58
Re: How to set moving gates - by Mkb122 - 06.11.2009, 19:20
Re: How to set moving gates - by yugokoral - 06.11.2009, 20:10
Re: How to set moving gates - by Luka P. - 06.11.2009, 20:15
Re: How to set moving gates - by SergiKirov - 07.11.2009, 05:45
Re: How to set moving gates - by Mkb122 - 07.11.2009, 10:20

Forum Jump:


Users browsing this thread: 1 Guest(s)