22.08.2010, 11:04
I need help making this gate open only when an admin approaches it, i had a go myself but it just didnt work lol, im using Xtremes Admin System. The code is
Thanks
pawn Код:
public GateCheck()
{
new admingate1Open;
for(new playerid; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,2220.3957,-1139.3205,25.6949))admingate1Open=1;
}
//AdminGate Los Santos
if(admingate1Open)MoveObject(admingate1,2227.763428, -1146.743164, 26.401253, 3); //These are the coordinates of the gate if it were in it's opened state.
else MoveObject(admingate1,2220.218018, -1144.315796, 26.401253, 3);//These are the coordinates of the gate if it were in it's closed state.
}