18.03.2010, 23:12
'For my information', you're just copying and pasting a script that script that you don't know how to edit makes me 'not give a shit' about what you're asking anymore. The code I gave you is perfectly fine. But whatever people like to complain about little stuff like little girls. Here's the code 'in your way'
Edit: Had to edit the code.
pawn Код:
public boatgate2timer()
{
new boatgate2status;
for(new i1;i1<MAX_PLAYERS;i1++)
{
if(!IsPlayerConnected(i1)) continue;
/* You would only use this if you're using SA-MP v0.2x or lower
if(PlayerToPoint(10.0, i, closed_X, closed_Y, closed_Z && GetPlayerSkin(i1) == 20) )c_gate_status = 1;
*/
if(IsPlayerInRangeOfPoint(i1,5,-2468.371338, 1547.240723, 24.030167 && GetPlayerSkin(i1) == 20))boatgate2status = 1;
}
if(boatgate2status)MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209,1);
else MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 1);
return 1;
}
Edit: Had to edit the code.