if(strcmp(cmd, \"/duty\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(gTeam[playerid] == 2 || IsACop(playerid)) { if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(3,playerid,-1615.4716,683.2507,7.1875) || PlayerInfo[playerid][pLocal] != 255 || PlayerToPoint(3,playerid,211.2802,175.4448,1003.0234) || PlayerInfo[playerid][pLocal] != 103) { if(OnDuty[playerid]==0) { format(string, sizeof(string), \"* Officer %s átöltözött, és elõvette fegyvereit.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SafeGivePlayerWeapon(playerid, 24, 150); SafeGivePlayerWeapon(playerid, 29, 150); SafeGivePlayerWeapon(playerid, 25, 150); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { format(string, sizeof(string), \"* Officer %s visszaöltözött.\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnDuty[playerid] = 0; } } else { SendClientMessage(playerid, COLOR_GRAD2, \" Nem vagy szekrénynél !\"); return 1; } } else if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Mostmár nem vagy szolgálatban!\"); JobDuty[playerid] = 0; Medics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Szolgálatban vagy!\"); JobDuty[playerid] = 1; Medics += 1; } } else if(PlayerInfo[playerid][pJob] == 7) { if(JobDuty[playerid] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Mostmár nem vagy szolgálatban!\"); JobDuty[playerid] = 0; Mechanics -= 1; } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, \"* Szolgálatban vagy!\"); JobDuty[playerid] = 1; Mechanics += 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, \" Nem vagy az adott csapat tagja!\"); } } return 1;}[/quote]