if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
if(PlayerInfo([playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2) || PlayerInfo([playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1) || PlayerInfo([playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3))
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
if(strcmp(cmd, \"/kamera\", true) == 0) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid,5.0,211.6799,1812.2871,21.8594) || IsPlayerInRangeOfPoint(playerid,5.0,450.7513,-88.6526,1174.3534) || IsPlayerInRangeOfPoint(playerid,5.0,1816.1584,-1562.8831,1636.9736)) { { ShowPlayerDialog(playerid, 1123, DIALOG_STYLE_LIST, \"Városi Kamerák\",\"Kamera Kikapcsolása\\nErsteBank Bejárat\\nErsteBank Nagyterem\\nErsteBank Széf\\nRendõrség Bejárat\\nRendõrség Váróterem\\nRendõrség Garázs\",\"Mehet\",\"Mégsem\"); format(string, sizeof(string), \"%s kapcsolgatja a kamerákat.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy kamera szobában!\"); } } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy bejelentkezve!\"); } } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy rendvédelem tagja!\"); } return 1; }
if(strcmp(cmd, \"/kamera\", true) == 0) { if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid,5.0,211.6799,1812.2871,21.8594) || IsPlayerInRangeOfPoint(playerid,5.0,450.7513,-88.6526,1174.3534) || IsPlayerInRangeOfPoint(playerid,5.0,1816.1584,-1562.8831,1636.9736)) { { ShowPlayerDialog(playerid, 1123, DIALOG_STYLE_LIST, \"Városi Kamerák\",\"Kamera Kikapcsolása\\nErsteBank Bejárat\\nErsteBank Nagyterem\\nErsteBank Széf\\nRendõrség Bejárat\\nRendõrség Váróterem\\nRendõrség Garázs\",\"Mehet\",\"Mégsem\"); format(string, sizeof(string), \"%s kapcsolgatja a kamerákat.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy kamera szobában!\"); } } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy bejelentkezve!\"); } else { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy rendvédelem tagja!\"); } } return 1; }