17.04.2011, 08:52
1є,quando eu sou membro da org 24 (para de zua o numero --') eu relogo e nгo sou demitido,agora quando eu sou lider,eu relogo e sou demitido pq
2є eu queria sabe porque o comando /m e /r nгo funciona,veja bem:
ja tentei fazer assim:
e assim
mesmo assim diz que eu n faзo parte de nenhuma equipe,o /r(adio) tambйn,veja o code:
como ja falei no pm ja tentei por esse tipo de [Pmembro] e [PLider] e tbm o Isheroes e nada,ainda n funfa,sу funfa o /ga :S
2є eu queria sabe porque o comando /m e /r nгo funciona,veja bem:
ja tentei fazer assim:
Код:
if(strcmp(cmd, "/megafone", true) == 0 || strcmp(cmd, "/m", 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_GRAD2, "USE: (/m)egafone [megaphone chat]"); return 1; } if(gTeam[playerid] == 2 || IsACop(playerid) || IsAPF(playerid) || IsACIA(playerid) || IsAFAB(playerid) || IsACopSF(playerid)) { if(PlayerInfo[playerid][pMembro] == 1||PlayerInfo[playerid][pLider] == 1) { format(string, sizeof(string), "Policial Militar %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 2||PlayerInfo[playerid][pLider] == 2) { format(string, sizeof(string), "ROTAM %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 3||PlayerInfo[playerid][pLider] == 3) { format(string, sizeof(string), "Exйrcito %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(gTeam[playerid] == 7 || IsAGOV(playerid)) { format(string, sizeof(string), "Governo %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 17||PlayerInfo[playerid][pLider] == 17) { format(string, sizeof(string), "Policial Civil %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 25||PlayerInfo[playerid][pLider] == 25) { format(string, sizeof(string), "FBI %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 26||PlayerInfo[playerid][pLider] == 26) { format(string, sizeof(string), "CIA %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 27||PlayerInfo[playerid][pLider] == 27) { format(string, sizeof(string), "Policial Federal %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 33||PlayerInfo[playerid][pLider] == 33) { format(string, sizeof(string), "FAB %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(IsHeroes(playerid)) { format(string, sizeof(string), "Hero %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } printf("%s", string); } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo faz parte de nenhum equipe !"); return 1; } } return 1; }
Код:
if(strcmp(cmd, "/megafone", true) == 0 || strcmp(cmd, "/m", 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_GRAD2, "USE: (/m)egafone [megaphone chat]"); return 1; } if(gTeam[playerid] == 2 || IsACop(playerid) || IsAPF(playerid) || IsACIA(playerid) || IsAFAB(playerid) || IsACopSF(playerid)) { if(PlayerInfo[playerid][pMembro] == 1||PlayerInfo[playerid][pLider] == 1) { format(string, sizeof(string), "Policial Militar %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 2||PlayerInfo[playerid][pLider] == 2) { format(string, sizeof(string), "ROTAM %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 3||PlayerInfo[playerid][pLider] == 3) { format(string, sizeof(string), "Exйrcito %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(gTeam[playerid] == 7 || IsAGOV(playerid)) { format(string, sizeof(string), "Governo %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 17||PlayerInfo[playerid][pLider] == 17) { format(string, sizeof(string), "Policial Civil %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 25||PlayerInfo[playerid][pLider] == 25) { format(string, sizeof(string), "FBI %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 26||PlayerInfo[playerid][pLider] == 26) { format(string, sizeof(string), "CIA %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 27||PlayerInfo[playerid][pLider] == 27) { format(string, sizeof(string), "Policial Federal %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 33||PlayerInfo[playerid][pLider] == 33) { format(string, sizeof(string), "FAB %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } else if(PlayerInfo[playerid][pMembro] == 24||PlayerInfo[playerid][pLider] == 24) { format(string, sizeof(string), "Hero %s:o< %s", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW); } printf("%s", string); } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo faz parte de nenhum equipe !"); return 1; } } return 1; }
Код:
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", 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_R, "USE: (/r)adio [radio chat]"); return 1; } if(IsACopSF(playerid))//PM SF ^^ { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Comandante %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Tenente %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Sargento %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Cabo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Guarda de Trвnsito %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Guarda %s: %s, over. **", sendername, result); } SendRadioMessage(41,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Comandante %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Tenente %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Sargento %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Cabo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Guarda de Trвnsito %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Guarda %s: %s, over. **", sendername, result); } SendRadioMessage(1,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Tenente Coronel %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Major %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Recruta %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Soldado 1Є Classe %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Novato %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Soldado 2Є Classe %s: %s, over. **", sendername, result); } SendRadioMessage(2,COLOR_R,string); printf("%s", string); return 1; } else if(IsHeroes(playerid)) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Super Hero %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Hero Master %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Hero Tatico %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Hero Profissional %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Hero Atirador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Hero Novato %s: %s,over", sendername, result); } else { format(string, sizeof(string), "** Hero Novato %s: %s, over. **", sendername, result); } SendRadioMessage(2,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro]== 33 || PlayerInfo[playerid][pLider]== 33) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Piloto Chefe %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Super Piloto %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Piloto Profissional %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Piloto Experiente %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Piloto de apoio %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Aviador Novato %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Aviador Novato %s: %s, over. **", sendername, result); } SendRadioMessage(33,COLOR_RADIO2,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** General %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Tenente Coronel %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Major %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Sargento %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Soldado %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Soldado %s: %s, over. **", sendername, result); } SendRadioMessage(3,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Prefeito %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Vice-Prefeito %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Acessor %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Vereador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Seguranзa %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Motorista %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Motorista %s: %s, over. **", sendername, result); } SendRadioMessage(3,COLOR_R,string); printf("%s", string); return 1; } else if(IsAPreSF(playerid)) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Prefeito %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Vice-Prefeito %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Acessor %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Vereador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Seguranзa %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Motorista %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Motorista %s: %s, over. **", sendername, result); } SendRadioMessage(43,COLOR_R,string); printf("%s", string); return 1; } /*else if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21) // P-S Radio { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Lider da Facзгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Sub-Chefe %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** PCC %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** PCC %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** PCC %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** PCC %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Informante %s: %s, over. **", sendername, result); } SendRadioMessage(21, COLOR_RADIO2, string); printf("%s", string); return 1; }*/ else if(gTeam[playerid] == 1||PlayerInfo[playerid][pMembro]==4||PlayerInfo[playerid][pLider]==4) { format(string, sizeof(string), "** Medico %s: %s, over. **", sendername, result); SendRadioMessage(4,COLOR_R,string); printf("%s", string); return 1; } else if(gTeam[playerid] == 1||PlayerInfo[playerid][pMembro]==44||PlayerInfo[playerid][pLider]==44) { format(string, sizeof(string), "** Medico SF %s: %s, over. **", sendername, result); SendRadioMessage(44,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro]== 17 || PlayerInfo[playerid][pLider]== 17) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Lнder %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Perito Criminal %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Investigador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Agente Especial %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Escrivгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Carcereiro %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Grupo Anti Furto %s: %s, over. **", sendername, result); } SendRadioMessage(17,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro]== 27 || PlayerInfo[playerid][pLider]== 27) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** PF Comandante %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** PF Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** PF General %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** PF Tenente %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** PF Sargento %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** PF Soldado %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** PF Soldado %s: %s, over. **", sendername, result); } SendRadioMessage(27,COLOR_R,string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Chefe %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Sub Chefe %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Investigador Profissional %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Investigador Espiгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Investigador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Aprendiz Investigativo %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Aprendiz Investigativo %s: %s, over. **", sendername, result); } SendRadioMessage(26, COLOR_RADIO2, string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Medico Diplomado %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Clinico Geral %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Doutor %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Medico %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Enfermeiro %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Novato %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** Novato %s: %s, over. **", sendername, result); } SendRadioMessage(26, COLOR_RADIO2, string); printf("%s", string); return 1; } else if(PlayerInfo[playerid][pMembro]== 25 || PlayerInfo[playerid][pLider]== 25) { if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Lнder %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Sub-Lнder %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Capitгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Atirador %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Espiгo %s: %s, over. **", sendername, result); } else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Agente %s: %s, over. **", sendername, result); } else { format(string, sizeof(string), "** FBI %s: %s, over. **", sendername, result); } SendRadioMessage(25,COLOR_R,string); printf("%s", string); return 1; } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo й de nenhuma equipe !"); return 1; } } return 1; }