if(strcmp(cmd, \"/departments\", true) == 0 || strcmp(cmd, \"/d\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_LIGHTRED, \"Használat: (/d)epartments [szöveg]\"); return 1; } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // Rendõr { new seged2[50]; if(PlayerInfo[playerid][pRank] == 1) format(seged2, sizeof(seged2), \"*Kadét\"); else if(PlayerInfo[playerid][pRank] == 2) format(seged2, sizeof(seged2), \"*Õrmester\"); else if(PlayerInfo[playerid][pRank] == 3) format(seged2, sizeof(seged2), \"*Tizedes\"); else if(PlayerInfo[playerid][pRank] == 4) format(seged2, sizeof(seged2), \"*Százados\"); else if(PlayerInfo[playerid][pRank] == 5) format(seged2, sizeof(seged2), \"*Hadnagy\"); else if(PlayerInfo[playerid][pRank] == 6) format(seged2, sizeof(seged2), \"*FõHadnagy\"); else if(PlayerInfo[playerid][pRank] == 7) format(seged2, sizeof(seged2), \"*Ezredes\"); else if(PlayerInfo[playerid][pRank] == format(seged2, sizeof(seged2), \"*VezérÕrNagy\"); else if(PlayerInfo[playerid][pRank] == 9) format(seged2, sizeof(seged2), \"*Igazgató-Helyettes\"); else if(PlayerInfo[playerid][pRank] == 10) format(seged2, sizeof(seged2), \"*VezérIgazgató\"); else { format(string, sizeof(string), \"* %s %s: %s, vége.\", seged2,sendername, result) } SendRadioMessage(1, COLOR_LIGHTBLUE, string); SendRadioMessage(4, COLOR_LIGHTBLUE, string); printf(\"%s\", string); format(stringx, sizeof(stringx), \"Valaki mondja((RÁDIÓ)): %s\", result); ProxDetector(15.0, playerid, stringx,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 1; } else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // Mentõs { new seged2[50]; if(PlayerInfo[playerid][pRank] == 1) format(seged2, sizeof(seged2), \"*Próbaidõs\"); else if(PlayerInfo[playerid][pRank] == 2) format(seged2, sizeof(seged2), \"*Ápoló\"); else if(PlayerInfo[playerid][pRank] == 3) format(seged2, sizeof(seged2), \"*Rezidens\"); else if(PlayerInfo[playerid][pRank] == 4) format(seged2, sizeof(seged2), \"*Orvos\"); else if(PlayerInfo[playerid][pRank] == 5) format(seged2, sizeof(seged2), \"*Fõorvos\"); else if(PlayerInfo[playerid][pRank] == 6) format(seged2, sizeof(seged2), \"*Professzor\"); else { format(string, sizeof(string), \"* %s %s: %s, vége.\", seged2,sendername, result) } SendRadioMessage(1, COLOR_LIGHTBLUE, string); SendRadioMessage(4, COLOR_LIGHTBLUE, string); printf(\"%s\", string); format(stringx, sizeof(stringx), \"Valaki mondja((RÁDIÓ)): %s\", result); ProxDetector(15.0, playerid, stringx,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, \"Nem vagy rendõr/Mentõs.\"); return 1; }}return 1;}
if(strcmp(cmd, \"/departments\", true) == 0 || strcmp(cmd, \"/d\", true) == 0){ if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_LIGHTRED, \"Használat: (/d)epartments [szöveg]\"); return 1; } if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) // Rendõr { new seged2[50]; if(PlayerInfo[playerid][pRank] == 1) format(seged2, sizeof(seged2), \"*Kadét\"); else if(PlayerInfo[playerid][pRank] == 2) format(seged2, sizeof(seged2), \"*Õrmester\"); else if(PlayerInfo[playerid][pRank] == 3) format(seged2, sizeof(seged2), \"*Tizedes\"); else if(PlayerInfo[playerid][pRank] == 4) format(seged2, sizeof(seged2), \"*Százados\"); else if(PlayerInfo[playerid][pRank] == 5) format(seged2, sizeof(seged2), \"*Hadnagy\"); else if(PlayerInfo[playerid][pRank] == 6) format(seged2, sizeof(seged2), \"*FõHadnagy\"); else if(PlayerInfo[playerid][pRank] == 7) format(seged2, sizeof(seged2), \"*Ezredes\"); else if(PlayerInfo[playerid][pRank] == format(seged2, sizeof(seged2), \"*VezérÕrNagy\"); else if(PlayerInfo[playerid][pRank] == 9) format(seged2, sizeof(seged2), \"*Igazgató-Helyettes\"); else if(PlayerInfo[playerid][pRank] == 10) format(seged2, sizeof(seged2), \"*VezérIgazgató\"); else format(seged2, sizeof(seged2), \"*Ismeretlen\"); format(string, sizeof(string), \"* %s %s: %s, vége.\", seged2,sendername, result) SendRadioMessage(1, COLOR_LIGHTBLUE, string); SendRadioMessage(4, COLOR_LIGHTBLUE, string); printf(\"%s\", string); format(stringx, sizeof(stringx), \"Valaki mondja((RÁDIÓ)): %s\", result); ProxDetector(15.0, playerid, stringx,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 1; } else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) // Mentõs { new seged2[50]; if(PlayerInfo[playerid][pRank] == 1) format(seged2, sizeof(seged2), \"*Próbaidõs\"); else if(PlayerInfo[playerid][pRank] == 2) format(seged2, sizeof(seged2), \"*Ápoló\"); else if(PlayerInfo[playerid][pRank] == 3) format(seged2, sizeof(seged2), \"*Rezidens\"); else if(PlayerInfo[playerid][pRank] == 4) format(seged2, sizeof(seged2), \"*Orvos\"); else if(PlayerInfo[playerid][pRank] == 5) format(seged2, sizeof(seged2), \"*Fõorvos\"); else if(PlayerInfo[playerid][pRank] == 6) format(seged2, sizeof(seged2), \"*Professzor\"); else format(seged2, sizeof(seged2), \"*Ismeretlen\"); format(string, sizeof(string), \"* %s %s: %s, vége.\", seged2,sendername, result) SendRadioMessage(1, COLOR_LIGHTBLUE, string); SendRadioMessage(4, COLOR_LIGHTBLUE, string); printf(\"%s\", string); format(stringx, sizeof(stringx), \"Valaki mondja((RÁDIÓ)): %s\", result); ProxDetector(15.0, playerid, stringx,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, \"Nem vagy rendõr/Mentõs.\"); return 1; }}return 1;}