22/12/2020 23:57
}
CMD:relatorio(playerid,params[]){
new string[128],GlobalTxt[128];
if(sscanf(params, "s[128]", GlobalTxt)) return SendClientMessage(playerid, -1, "[USE]: /g [texto]");
format(string,sizeof(string),"[CB][Civil] %s(%i):{FFFFFF} %s",GetPlayerNameEx(playerid),playerid,GlobalTxt);
if(PlayerInfo[playerid][pAdmin] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",GetNomeCargoADM(PlayerInfo[playerid][pAdmin]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
if(PlayerInfo[playerid][Vip] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",NomeNivelVip(playerid),GetPlayerNameEx(playerid),playerid,GlobalTxt);
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);
if(yMP_Emprego[playerid] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",GetNomeEmprego(yMP_Emprego[playerid]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
ChatLocal(playerid,string,5.0,0x9966FFFF);
return 1;
}
Fiz esse comando mais n sei como coloco para as resposta irem para um adm
CMD:relatorio(playerid,params[]){
new string[128],GlobalTxt[128];
if(sscanf(params, "s[128]", GlobalTxt)) return SendClientMessage(playerid, -1, "[USE]: /g [texto]");
format(string,sizeof(string),"[CB][Civil] %s(%i):{FFFFFF} %s",GetPlayerNameEx(playerid),playerid,GlobalTxt);
if(PlayerInfo[playerid][pAdmin] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",GetNomeCargoADM(PlayerInfo[playerid][pAdmin]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
if(PlayerInfo[playerid][Vip] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",NomeNivelVip(playerid),GetPlayerNameEx(playerid),playerid,GlobalTxt);
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);
if(yMP_Emprego[playerid] > 0) format(string,sizeof(string),"[CB][%s] %s(%i):{FFFFFF} %s",GetNomeEmprego(yMP_Emprego[playerid]),GetPlayerNameEx(playerid),playerid,GlobalTxt);
ChatLocal(playerid,string,5.0,0x9966FFFF);
return 1;
}
Fiz esse comando mais n sei como coloco para as resposta irem para um adm