AloneZ

Login RCon

Aug 12th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.46 KB | None | 0 0
  1. forward OnRconLoginAttemp(ip[], password[], success);
  2. public OnRconLoginAttemp(ip[], password[], success)
  3. {
  4.      if(success)
  5.      {
  6.           new pip[16];
  7.           new string[128];
  8.           for(new i = 0; i<MAX_PLAYERS; i++)
  9.           {
  10.                GetPlayerName(i, sendername, sizeof(sendername));
  11.                GetPlayerIp(i, pip, sizeof(pip));
  12.                if(!strcmp(ip, pip, true))
  13.                {
  14.                     if(strcmp(sendername,"Ricardo_Santos", true) == 0)
  15.                     {
  16.                         format(string, sizeof(string), "Bem Vindo senhor %s, agora o senhor esta logado como RCon com Sucesso !", sendername);
  17.                         SendClientMessage(i, COLOR_WHITE, string);
  18.                         return true;
  19.                     }
  20.                     else
  21.                     {
  22.                          SendClientMessage(i, COLOR_YELLOW, "Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
  23.                          SendClientMessage(i, COLOR_YELLOW, "A culpa não eh minha seu invejoso, sua inveja eh minha fama caralho!");
  24.                              getdate(year, month, day);
  25.                          gettime(hour,minute);
  26.                          format(gstring,sizeof(gstring), "%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),day, month, year,hour, minute);
  27.                          SBan(i, "Admin Rcon", "Guardião_Negro");
  28.                     }
  29.                 }
  30.           }
  31.      }
  32.      return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment