18.03.2010, 23:15
Here:
pawn Код:
public boatgate2timer()
{
new boatgate2status;
for(new i1;i1<MAX_PLAYERS;i1++)
{
new playerskin;
playerskin = GetPlayerSkin(i1);
if(!IsPlayerConnected(i1) && IsPlayerInRangeOfPoint(i1,5,-2468.371338, 1547.240723, 24.030167) && playerskin == 20)
{
boatgate2status = 1;
}
if(boatgate2status == 1)
{
MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209,1);
}
else MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 1);
return 1;
}
}