10.05.2013, 23:39
@Edit. Aqui estб os cуdigos /R e /D , procura no seu GM por SendFamilyMessage e posta ae por favor .
PHP код:
//----------------------------------[Team]-----------------------------------------------
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Vocк nгo pode falar, pois foi calado");
return true;
}
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 true;
}
if(TentouDivulgar(result))
{
if(cdivulgar[playerid] >= 4)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
Kick(playerid);
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
ABroadCast(COLOR_YELLOW,string,1);
DivulgouLog(string);
cdivulgar[playerid] += 1;
return true;
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Comandante %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Capitгo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Tenente %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Sargento %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Cabo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Cadete %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Guarda %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(1,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Prefeito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Vice-Prefeito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Acessor %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Vereador %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Seguranзa %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Motorista %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Motorista %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(7,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Capitгo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Tenente %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Sargento %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Cabo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Soldado %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Recruta %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Recruta %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** General %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Tenente Coronel %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Major %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Capitгo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Sargento %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Soldado %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Soldado %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(3,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Diretor Hospitalar %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Sub-Diretor %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Mйdico Profissional %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Mйdico %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Enfermeiro %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Auxiliar de Enfermeiro %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Auxiliar de Enfermeiro %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(4,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro]== 16 || PlayerInfo[playerid][pLider]== 16)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Perito Criminal %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Atirador de Elite %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Agente Do G.E.R %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Agente Do G.O.E %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Novato %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Novato %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(16,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro]== 11 || PlayerInfo[playerid][pLider]== 11)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Sub-Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Capitгo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Atirador %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Espiгo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Agente %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Agente %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(11,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Tenente-Brigadeiro %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Brigadeiro %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Coronel %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Tenente %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Sargento %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Soldado %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Soldado %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(24,COLOR_R,string);
printf("%s", string);
format(string, sizeof(string), "* %s falou algo no rбdio.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo й de nenhuma equipe !");
return true;
}
}
return true;
}
PHP код:
//----------------------------------[departments]-----------------------------------------------
if(strcmp(cmd, "/departamento", 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_DEPTH, "USE: (/d)epartamento [Texto]");
return true;
}
if(TentouDivulgar(result))
{
if(cdivulgar[playerid] >= 4)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
Kick(playerid);
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,playername,result);
ABroadCast(COLOR_YELLOW,string,1);
DivulgouLog(string);
cdivulgar[playerid] += 1;
return true;
}
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** PM Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** PM %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** PM %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** PM %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** PM %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Cadete %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Policia Militar %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** B.O.P.E Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** B.O.P.E %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Exйrcito Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Exйrcito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Exйrcito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Exйrcito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Exйrcito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Exйrcito %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Exercito %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Prefeito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Vice-Prefeito %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Acessor %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Agente do Governo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Seguranзa do Governo %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Motorista do Governo %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Governo %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** PC Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** PC %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** PC %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** PC %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** PC %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** PC %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Policia Civil %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** PF Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** PF %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** Aeronautica Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** Aeronautica %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)
{
if(PlayerInfo[playerid][pCargo] == 6) { format(string, sizeof(string), "** SAMU Lнder %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 5) { format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 4) { format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 3) { format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 2) { format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result); }
else if(PlayerInfo[playerid][pCargo] == 1) { format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result); }
else
{
format(string, sizeof(string), "** SAMU %s: %s, cвmbio. **", sendername, result);
}
SendFamilyMessage(2, COLOR_DEPTH, string);
SendFamilyMessage(1, COLOR_DEPTH, string);
SendFamilyMessage(3, COLOR_DEPTH, string);
SendFamilyMessage(16, COLOR_DEPTH, string);
SendFamilyMessage(7, COLOR_DEPTH, string);
SendFamilyMessage(11, COLOR_DEPTH, string);
SendFamilyMessage(4, COLOR_DEPTH, string);
SendFamilyMessage(24, COLOR_DEPTH, string);
printf("%s", string);
return true;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo й um Policial/Mйdico!");
return true;
}
}
return true;
}