/report (ajuda)
#7

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
CMD:report(playerid, params[])
{
   new nomeJog[50], jogReport, Motivo[90], StringTexto[150];
   GetPlayerName(jogReport, nomeJog, sizeof(nomeJog));
   if(sscanf(params, "is", jogReport, Motivo))  return SendClientMessage(playerid, rBranco, "[INFO] /Report [playerid] [motivo]");

   format(StringTexto, sizeof(StringTexto), "[Aviso] %s(ID:%d) reportou %s(ID:%d), pelo motivo: %s", rNome(playerid), playerid, nomeJog, jogReport, Motivo);
   ChatAdmin(rLaranja, StringTexto);
   SendClientMessage(playerid, rCinza, "[INFO] Report enviado aos administradores. (/Admins)");
   return true;
}
stock ChatAdmin(cor, string[])
{
   for (new r = 0; r != GetMaxPlayers(); r++)
   {
      if(IsPlayerConnected(r) && rAdminNivel[r] > 1)
      {
         SendClientMessage(r, rLaranja, StringTexto);
      }
   }
}
Assim, o sistema de admin nгo funciona
Reply


Messages In This Thread
/report (ajuda) - by BodyBuilder - 12.10.2012, 21:52
Re: /report (ajuda) - by arakuta - 12.10.2012, 21:56
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 21:59
Re: /report (ajuda) - by mau.tito - 12.10.2012, 22:01
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 22:08
Re: /report (ajuda) - by mau.tito - 12.10.2012, 22:14
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)