08.09.2012, 11:00
Hello everybody.I got problem with automaticli gate I don`t see problem but they won`t open...
pawn Код:
forward CheckGate(playerid);
SetTimer("CheckGate",1000,true);
public CheckGate(playerid)
{
if(GetPlayerTeam(playerid) == 1)
{
new mygate_status;
if(IsPlayerInRangeOfPoint(playerid,10.0,1578.8043,-1751.2802,4.3760))mygate_status = 1;
if(mygate_status == 1)
{
MoveObject(civilgate1, 1578.91369629,-1751.37561035,1.58261597,2.0);
MoveObject(civilgate2, 1578.91308594,-1751.37500000,11.43260574,2.0);
}
if(mygate_status == 0)
{
MoveObject(civilgate1, 1578.91369629,-1751.37561035,5.13261700,2.0);
MoveObject(civilgate2, 1578.91308594,-1751.37500000,8.70762062,2.0);
}
}
return 1;
}