[Ajuda] preciso de ajuda em 3 coisas D:
#1

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:
Код:
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;
	}
e 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(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;
	}
mesmo assim diz que eu n faзo parte de nenhuma equipe,o /r(adio) tambйn,veja o code:
Код:
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;
	}
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
Reply
#2

Em uma semana tu vira High Roller sу de tanto de duvida que tu tem.
Devem tar fazendo um novo livro sagrado do samp respondendo suas duvidas..
Maiores que a biblia..
@Topic
pawn Код:
new.pwn // para sua felicidade
Reply
#3

Dou uma dica:
pawn Код:
if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new tmpcar = GetPlayerVehicleID(playerid) - 1;
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[/m]egaphone [texto]");
                return 1;
            }
            if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
            {
                if(!IsPlayerInAnyVehicle(playerid))
                {
                    SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Estбs fora do carro.");
                    return 1;
                }
                if(!CopOnDuty[playerid])
                {
                    SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Nгo estбs de serviзo.");
                    return 1;
                }
                if(DynamicCars[tmpcar][FactionCar] != PlayerInfo[playerid][pFaction])
                {
                    SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Nгo estбs dentro de um carro da Policia.");
                    return 1;
                }
                new rank = PlayerInfo[playerid][pRank];
                if(rank == 1)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank1],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 2)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank2],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 3)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank3],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 4)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank4],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 5)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank5],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 6)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank6],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 7)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank7],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 8)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank8],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 9)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank9],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                else if(rank == 10)
                {
                    format(string, sizeof(string), "[POLICIA] %s %s: %s!!", DynamicFactions[PlayerInfo[playerid][pFaction]][fRank10],GetPlayerNameEx(playerid), result);
                    ProxDetector(60.0, playerid, string,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA,0xF6D100AA);
                    return 1;
                }
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Nгo йs um policia!");
                return 1;
            }
        }
        return 1;
    }
e ...
pawn Код:
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new wstring[236];
            new faction = PlayerInfo[playerid][pFaction];
            new rank = PlayerInfo[playerid][pRank];
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "/r)adio [texto]");
                return 1;
            }
            if(Muted[playerid])
            {
                SendClientMessage(playerid, COLOR_RED, "Nгo podes usar o rбdio, estбs mutado.");
                return 1;
            }
            if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
            {
                        if(PlayerInfo[playerid][pFaction] == 0)
                        {
                            if(CopOnDuty[playerid])
                            {
                                if(rank == 1)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank1],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 2)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 3)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 4)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 5)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank5],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 6)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank6],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 7)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank7],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 8)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank8],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 9)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank9],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 10)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank10],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(0, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                            }
                            else
                            {
                                SendClientMessage(playerid,COLOR_LIGHTYELLOW2, "Nгo estбs de serviзo.");
                            }
                        }
                        if(PlayerInfo[playerid][pFaction] == 3)
                        {
                            if(MedicOnDuty[playerid])
                            {
                                if(rank == 1)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank1],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 2)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 3)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 4)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 5)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank5],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 6)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank6],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 7)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank7],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 8)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank8],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 9)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank9],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 10)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank10],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(3, COLOR_YELLOW, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                            }
                            else
                            {
                                SendClientMessage(playerid,COLOR_LIGHTYELLOW2, "Nгo estбs de serviзo.");
                            }
                        }
                        if(PlayerInfo[playerid][pFaction] == 5)
                        {
                            if(rank == 1)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank1],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 2)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 3)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 4)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 5)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank5],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 6)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank6],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 7)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank7],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 8)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank8],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 9)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank9],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                            else if(rank == 10)
                            {
                                format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank10],GetPlayerNameEx(playerid),result);
                                SendFactionTypeMessage(2, COLOR_LSPD, wstring);
                                FactionChatLog(wstring);
                                PhoneAnimation(playerid);
                                PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                            }
                        }
      if(PlayerInfo[playerid][pFaction] == 6)
                        {
                            if(CopOnDuty[playerid])
                            {
                                if(rank == 1)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank1],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 2)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 3)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 4)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 5)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank5],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 6)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank6],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 7)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank7],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    format(string, sizeof(string), "(Rбdio) %s diz: %s", GetPlayerNameEx(playerid), result);
                                    ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 8)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank8],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 9)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank9],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                                else if(rank == 10)
                                {
                                    format(wstring, sizeof(wstring), "[Rбdio:] %s %s: %s, over.",DynamicFactions[faction][fRank10],GetPlayerNameEx(playerid),result);
                                    SendFactionMessage(6, COLOR_LSPD, wstring);
                                    FactionChatLog(wstring);
                                    PhoneAnimation(playerid);
                                    PlayerActionMessage(playerid,15.0,"pressiona o botгo e utiliza o rбdio.");
                                }
                            }
                            else
                            {
                                SendClientMessage(playerid,COLOR_LIGHTYELLOW2, "Nгo estбs de serviзo.");
                            }
                        }
            }
            else
            {
                SendClientMessage(playerid,COLOR_LIGHTYELLOW2, "Faction Invбlida.");
            }
        }
        return 1;
    }
Agora edite, com as suas variбveis. (;
boa sorte.
Reply
#4

Larga do thug e aprende a fazer um rбdio, pelo menos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)