if(!strcmp(cmdtext, \"/szerelõ-nyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17) { if (PlayerToPoint(10, playerid,-310.86661, 2690.96411, 62.28670)) { MoveDynamicObject(szerelo,-310.86661, 2690.96411, 62.28670, 0.1, 0.00000, 0.00000, 0.00000); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s kinyitja a sorompót a távirányítóval.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,\"Túl messze vagy a sorompótol.\"); }}else return SendClientMessage(playerid, COLOR_GREY,\"Nem vagy Szerelõ/Admin!\"); return 1;}if(!strcmp(cmdtext, \"/szerelõ-zár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17) { if (PlayerToPoint(10, playerid,-310.86661, 2690.96411, 62.28670)) { MoveDynamicObject(szerelo,-310.86661, 2690.96411, 62.28670, 0.1 , 0.00000, -88.00000, 0.00000); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s bezárja a sorompót a távirányítóval\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,\"Túl messze vagy a sorompótól.\"); }}else return SendClientMessage(playerid, COLOR_GREY,\"Nem vagy Szerelõ/Admin!\"); return 1; }
MoveDynamicObject(szerelo,-310.86661, 2690.96411, 62.28670, 0.1 , -1000.00000, -88.00000, -1000.00000);MoveDynamicObject(szerelo,-310.86661, 2690.96411, 62.28670, 0.1 , -1000.00000, -88.00000, -1000.00000);