Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <cstrike>
- #pragma tabsize 0
- bool BlockButtons;
- public Plugin myinfo =
- {
- name = "[CSGO] Block Buttons",
- author = "BaroNN",
- description = "",
- version = "1.0",
- url = "http://steamcommunity.com/id/BaRoNN-Main"
- }
- public void OnPluginStart()
- {
- RegAdminCmd("sm_blockbuttons", Command_Block, ADMFLAG_GENERIC);
- }
- public Action Command_Block(int client, int args)
- {
- BlockButtons = !BlockButtons;
- PrintToChatAll("[SM] %N %s \x10Block Pressing Buttons", client, BlockButtons ? ("\x04Enabled"):("\x02Disabled"));
- }
- public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon)
- {
- if (BlockButtons)
- {
- if (buttons & IN_USE)buttons &= ~IN_USE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement