#include <sourcemod>
#pragma semicolon 1
public Plugin:myinfo =
{
name = "Nocrouch",
author = "theY4Kman & McFlurry & Impact123",
description = "Blocks player crouching",
version = "1.0",
url = "http://forums.alliedmods.net/showthread.php?t=173315"
}
public OnPluginStart()
{
}
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) {
// Block +duck
buttons &= ~IN_DUCK;
// We must return Plugin_Continue to let the changes be processed.
// Otherwise, we can return Plugin_Handled to block the commands
return Plugin_Changed;
}