10.02.2013, 12:13
Hello there,
i have a script for autogate and it work's fine.
But my want that the gate open only with Gang members, so if someone can help me it will be very helpfull thnx.
Here is the script:
i have a script for autogate and it work's fine.
But my want that the gate open only with Gang members, so if someone can help me it will be very helpfull thnx.
Here is the script:
Код:
new autogate; forward close(); public close() { MoveObject(autogate, 1285.0999755859, -2056.1000976563, 61.700000762939,3); return 1; } public OnGameModeInit() autogate = CreateObject(16775, 1285.0999755859, -2056.1000976563, 61.700000762939, 0, 0, 268); public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid,8,1285.0999755859, -2056.1000976563, 61.700000762939)) { MoveObject(autogate,1285.0999755859, -2056.1000976563, 53.5,3); SetTimer("close",4000,0); return 1; } return 1; }