Advertisement
Niko_boy

isthisokay?

Apr 2nd, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public OnRconLoginAttempt(ip[], password[], success)
  2. {
  3. new pIP[18];
  4. foreach(Player,i)
  5. {
  6. GetPlayerIp(i,pIP,sizeof(pIP));
  7. if(pIP == ip)
  8. {
  9. GetName(i);
  10. if(IsPlayerConnected(i))
  11. {
  12. if(success)
  13. {
  14. format(szString,sizeof(szString),"%s(%i) Has Login into Server AS RCON Admin");
  15. ISAY(szString);
  16. }
  17. else
  18. {
  19. format(szString,sizeof(szString),"Fail Rcon Attempt from %s(%i)[IP: %s]",ip);
  20. ISAY(szString);
  21. }
  22. }
  23. }
  24. }
  25.  
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement