Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <steamtools>
  3. new Async_ServerReputation_Client;
  4. new ReplySource:Async_ServerReputation_Reply;
  5. public Plugin:myinfo =
  6. {
  7. name = "Check Server Rep",
  8. author = "-",
  9. description = "-",
  10. version = "1.0",
  11. url = "-"
  12. }
  13.  
  14. public OnPluginStart()
  15. {
  16. RegAdminCmd("sm_printserverreputation", Command_ServerReputation, ADMFLAG_ROOT, "Requests a server's reputation from the Steam Master Servers.");
  17. }
  18.  
  19. public Action:Command_ServerReputation(client, args)
  20. {
  21. Steam_RequestServerReputation();
  22. ReplyToCommand(client, "[SM] Server Reputation Requested.");
  23.  
  24. Async_ServerReputation_Client = client;
  25. Async_ServerReputation_Reply = GetCmdReplySource();
  26.  
  27. return Plugin_Handled;
  28. }
  29. public Steam_Reputation(reputationScore, bool:banned, bannedIP, bannedPort, bannedGameID, banExpires)
  30. {
  31. SetCmdReplySource(Async_ServerReputation_Reply);
  32. ReplyToCommand(Async_ServerReputation_Client, "[SM] Reputation Score: %d. Banned: %s.", reputationScore, banned?"true":"false");
  33. Async_ServerReputation_Reply = SM_REPLY_TO_CONSOLE;
  34. Async_ServerReputation_Client = 0;
  35. return;
  36. }
Add Comment
Please, Sign In to add comment