szkapu2 = CreateObject(980,-505.2002000,2591.0000000,55.2000000,0.0000000,0.0000000,269.7470000);CMD:nyit(playerid,params[]){if(IsPlayerInRangeOfPoint(playerid, 10, -501.99557495117, 2593.0185546875, 53.504341125488)){ if(pInfo[playerid][pFrakcio] == SZERELO || pInfo[playerid][pFrakcio] == SZFONOK) { MoveObject(szkapu2, -505.2000100,2591.0000000,48.7000000,0.0000000,0.0000000,269.7470000); cmd_me(playerid, \"kinyit egy kaput.\");}}else if(IsPlayerInRangeOfPoint(playerid, 5, -285.96, 2660.50, 63.30)){ if(pInfo[playerid][pFrakcio] == SZERELO || pInfo[playerid][pFrakcio] == SZFONOK) { MoveObject(szkapu1, -285.96, 2660.50, 64.58, 2, 79.00, 0.00, 90.00); cmd_me(playerid, \"kinyit egy kaput.\");}}
MoveObject(szkapu2, -505.2000100,2591.0000000,48.7000000, 2/*Ez lenne az*/ ,0.0000000,0.0000000,269.7470000);