03.02.2010, 23:15
Mabye this?
pawn Код:
public CheckGate()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInRangeOfPoint(i, 10.0, 1589.048096, -1637.884277, 12.902792))
{
if(GetPlayerTeam(i) == 1)
{
MoveObject(c_gate, 1596.955811, -1637.884277, 12.902792, 2);
PlayerPlaySound(i, 1165, 1589.048096, -1637.884277, 12.902792);
return;
}
}
}
MoveObject(c_gate, 1589.048096, -1637.884277, 12.902792, 2);
PlayerPlaySound(i, 1165, 1589.048096, -1637.884277, 12.902792);
}