Guest User

Untitled

a guest
May 8th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public OnRconLoginAttempt(ip[], password[], success)
  2. {
  3. new strport[150];
  4. new plip[MAX_PLAYER_IP], playerid;
  5. foreach(Player, i)
  6. {
  7. GetPlayerIp(i, plip, sizeof(plip));
  8. if(strcmp(plip, ip) == 0)
  9. {
  10. playerid = i;
  11. }
  12. }
  13. if(success) //////// Rcon zastita
  14. {
  15. new connectIme[MAX_PLAYER_NAME];
  16. ImeIgraca(playerid, connectIme);
  17. if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
  18. {
  19. }
  20. else if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
  21. {
  22. }
  23. else if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
  24. {
  25. }
  26. else
  27. {
  28. SCM(playerid, CRVENA,"* Vase ime nema dozvolu za rcon logovanje, dobili ste kick sa servera.");
  29. Kick(playerid);
  30. }
  31. }
  32. return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment