Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <steamtools>
- new Async_ServerReputation_Client;
- new ReplySource:Async_ServerReputation_Reply;
- public Plugin:myinfo =
- {
- name = "Check Server Rep",
- author = "-",
- description = "-",
- version = "1.0",
- url = "-"
- }
- public OnPluginStart()
- {
- RegAdminCmd("sm_printserverreputation", Command_ServerReputation, ADMFLAG_ROOT, "Requests a server's reputation from the Steam Master Servers.");
- }
- public Action:Command_ServerReputation(client, args)
- {
- Steam_RequestServerReputation();
- ReplyToCommand(client, "[SM] Server Reputation Requested.");
- Async_ServerReputation_Client = client;
- Async_ServerReputation_Reply = GetCmdReplySource();
- return Plugin_Handled;
- }
- public Steam_Reputation(reputationScore, bool:banned, bannedIP, bannedPort, bannedGameID, banExpires)
- {
- SetCmdReplySource(Async_ServerReputation_Reply);
- ReplyToCommand(Async_ServerReputation_Client, "[SM] Reputation Score: %d. Banned: %s.", reputationScore, banned?"true":"false");
- Async_ServerReputation_Reply = SM_REPLY_TO_CONSOLE;
- Async_ServerReputation_Client = 0;
- return;
- }
Add Comment
Please, Sign In to add comment