18.03.2010, 22:27
I can't read your code, and most of it is not right. Here's a working one.
pawn Код:
forward boatgate2timer();
public boatgate2timer() {
for(new i = 0; i > MAX_PLAYERS; i ++ ) {
if(IsPlayerConnected(i)) {
if(GetPlayerSkin(i) == 20) {
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z)) {
boatgate2status = 1;
}
if(boatgate2status) return MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209,1);
else if(boatgate2status) return MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 1);
}
}
}
}