Reformulei o seu comando tente assim.
Código:
CMD:relatorio(playerid,params[]){
new string[128],GlobalTxt[128];
if(sscanf(params, "s[128]", GlobalTxt)) return SendClientMessage(playerid, -1, "[USE]: /g [texto]");
if(PlayerInfo[playerid][pAdmin] > 0){
format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF}
%s",GetNomeCargoADM(PlayerInfo[playerid][pAdmin]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerLogged(i)){
if(PlayerInfo[i][pAdmin] > 0){
SendClientMessage(i, -1, string);
}
}
}
}else if(PlayerInfo[playerid][Vip] > 0){
format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",NomeNivelVip(playerid),GetPlayerNameEx(playerid),playerid,GlobalTxt);
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerLogged(i))
if(PlayerInfo[i][pAdmin] > 0){
SendClientMessage(i, -1, string);
}
}
}
}else if(OC_InfOGPly[playerid][OC_IDOrg] > 0){
format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",OC_NomeOrg(OC_InfOGPly[playerid] [OC_IDOrg]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerLogged(i))
if(PlayerInfo[i][pAdmin] > 0){
SendClientMessage(i, -1, string);
}
}
}
}else if(yMP_Emprego[playerid] > 0){
format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",GetNomeEmprego(yMP_Emprego[playerid]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerLogged(i))
if(PlayerInfo[i][pAdmin] > 0){
SendClientMessage(i, -1, string);
}
}
}
}else{
format(string,sizeof(string),"[CB][Civil] %s(%i):{FFFFFF} %s",GetPlayerNameEx(playerid),playerid,GlobalTxt);
for(new i = 0; i<MAX_PLAYERS; i++)
if(IsPlayerLogged(i)){
if(PlayerInfo[i][pAdmin] > 0){ {
SendClientMessage(i, -1, string);
}
}
}
}
return 1;
}
github.com/iacta
kill your memories, before they kill you