Guest User

Untitled

a guest
Oct 21st, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. public OnRconLoginAttempt(ip[], password[], success)
  2. {
  3. if(strfind(password, "%", true) != -1)
  4. {
  5. return true;
  6. }
  7. new test[400], test1[400];
  8. new plip[32], playerid;
  9. foreach(Player, i)
  10. {
  11. GetPlayerIp(i, plip, sizeof(plip));
  12. if(strcmp(plip, ip) == 0)
  13. {
  14. playerid = i;
  15. }
  16. }
  17. if(success)
  18. {
  19. if(!strcmp(GetName(playerid), "Hafiz_Kemo", true))
  20. {
  21. format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
  22. format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
  23. PorukaSuvlasniku(ZUTA,test,1);
  24. RconLog(test1);
  25. }
  26. else if(!strcmp(GetName(playerid), "Nelson", true))
  27. {
  28. format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
  29. format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
  30. PorukaSuvlasniku(ZUTA,test,1);
  31. RconLog(test1);
  32. }
  33. else if(!strcmp(GetName(playerid), "Corleone", true))
  34. {
  35. format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
  36. format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
  37. PorukaSuvlasniku(ZUTA,test,1);
  38. RconLog(test1);
  39. }
  40. else
  41. {
  42. format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s je pokusao da se uloguje na RCON, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid), password, ip);
  43. format(test1,400,"RCON: %s je pokusao da se uloguje na rcon, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
  44. PorukaSuvlasniku(ZUTA,test,1);
  45. RconLog(test1);
  46. lz_Kick(playerid, "Rcon pokusaj");
  47. }
  48. }
  49. else if(!success)
  50. {
  51. format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s je pokusao da se uloguje na RCON, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
  52. format(test1,400,"RCON: %s je pokusao da se uloguje na rcon, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
  53. PorukaSuvlasniku(ZUTA,test,1);
  54. RconLog(test1);
  55. }
  56. return true;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment