07.04.2013, 19:36
COMMAND:close_gov123(playerid, params[])
Replace spaces with "_" or make simpler commands.
Anyway
Replace spaces with "_" or make simpler commands.
Anyway
Код:
COMMAND:open_gov123(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 5.0, -2819.3171, 2651.5464, 103.3268)) { MoveObject(pgate1, -2819.3171, 2648.8591, 103.3268, 6.0); return 1; } if(IsPlayerInRangeOfPoint(playerid, 5.0, 2855.7476, 2665.3562, 106.6561)) { MoveObject(pgate2, -2855.7476, 2668.2810, 106.6561, 6.0); return 1; } return 1; } COMMAND:close_gov123(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 5.0, -2819.3171, 2651.5464, 103.3268)) { MoveObject(pgate1, -2819.3171, 2651.5464, 103.3268, 6.0); return 1; } if(IsPlayerInRangeOfPoint(playerid, 5.0, 2855.7476, 2665.3562, 106.6561)) { MoveObject(pgate2, 2855.7476, 2665.3562, 106.6561, 6.0); return 1; } return 1; }