06.11.2009, 18:57
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.
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;
}


