[Need help with] Automatic Gate
#2

try this
pawn Code:
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerToPoint(10.0, i, 1543.379150, -1627.431763, 16.002745) && OpenGate == 0)
{
if(gTeam[i] == 4) //>>>>ERROR 1<<<<
{
MoveObject(P_gate, 1543.041870, -1621.382202, 15.827747,5.00);
OpenGate = 1;
}
}
else if(!PlayerToPoint(10.0, i, 1543.379150, -1627.431763, 16.002745) && OpenGate == 1)
{
if(gTeam[i] == 4)//>>>>ERROR 1<<<<
{
MoveObject(P_gate, 1543.041870, -1621.382202, 15.827747,5.00);
OpenGate = 0;
}
}
}
}
Reply


Messages In This Thread
[Need help with] Automatic Gate - by CAR - 24.08.2009, 13:31
Re: [Need help with] Automatic Gate - by James_Alex - 24.08.2009, 13:32
Re: [Need help with] Automatic Gate - by CAR - 24.08.2009, 13:34
Re: [Need help with] Automatic Gate - by CAR - 24.08.2009, 14:41
Re: [Need help with] Automatic Gate - by CAR - 24.08.2009, 19:30
Re: [Need help with] Automatic Gate - by Marcus09 - 24.08.2009, 19:33
Re: [Need help with] Automatic Gate - by CAR - 24.08.2009, 19:38
Re: [Need help with] Automatic Gate - by Javi_Cogollero - 24.08.2009, 21:04
Re: [Need help with] Automatic Gate - by CAR - 25.08.2009, 14:43
Re: [Need help with] Automatic Gate - by SpiderPork - 25.08.2009, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)