[Ajuda] Reportar Nao imprimindo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Reportar Nao imprimindo (
/showthread.php?tid=358881)
Reportar Nao imprimindo -
Maklister - 12.07.2012
Meu problema e que meu cmd /Reportar [id] Nao esta Imprimindo a Mensagem para os Administradores Onlines
pawn Код:
CMD:reportar(playerid, params[])
{
new giverid,Motivo[128];
if(sscanf(params,"ds[128]",giverid,Motivo)) return SendClientMessage(playerid,VERMELHO_ESCURO,"[x] Use: /Reportar [id] [motivo]");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,VERMELHO_ESCURO,"O jogador nгo estб conectado");
new string[150];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] == 1000 && PlayerInfo[i][pAdmin] == 2000)
{
format(string,sizeof(string),"• (REPORT){E8E800} %s(ID:%d) Reportou {FF0000}%s(ID:%d) {E8E800}Motivo:{FFFFFF} %s", nome(playerid),giverid,nome(giverid),playerid,Motivo);
GameTextForPlayer(playerid, "~w~NOVO ~n~~r~REPORT", 3000, 4);
SendClientMessage(i, VERMELHO_ESCURO, string);
}
}
}
SendClientMessage(playerid,0xFF0000AA,"• {8D8D8D} Seu Report foi Enviado a Todos Administrador e Moderadores Online!");
return 1;
}
Re: Reportar Nao imprimindo -
@Riichard - 12.07.2012
So existe 2 leveis de admins?
pawn Код:
CMD:reportar(playerid, params[])
{
new giverid,Motivo[128];
if(sscanf(params,"ds[128]",giverid,Motivo)) return SendClientMessage(playerid,VERMELHO_ESCURO,"[x] Use: /Reportar [id] [motivo]");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,VERMELHO_ESCURO,"O jogador nгo estб conectado");
new string[150];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1) // Vai checar se igual ou maior
{
format(string,sizeof(string),"• (REPORT){E8E800} %s(ID:%d) Reportou {FF0000}%s(ID:%d) {E8E800}Motivo:{FFFFFF} %s", nome(playerid),giverid,nome(giverid),playerid,Motivo);
GameTextForPlayer(playerid, "~w~NOVO ~n~~r~REPORT", 3000, 4);
SendClientMessage(i, VERMELHO_ESCURO, string);
}
}
}
SendClientMessage(playerid,0xFF0000AA,"• {8D8D8D} Seu Report foi Enviado a Todos Administrador e Moderadores Online!");
return 1;
}
Re: Reportar Nao imprimindo -
dPlaYer_ - 12.07.2012
Resolvido msn '.'
Re: Reportar Nao imprimindo -
Maklister - 12.07.2012
Resolvido !
+ REP