mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-05 23:03:20 +00:00
Disable RunCmd when not enabled
This commit is contained in:
parent
44d407a937
commit
bf3058751f
2 changed files with 1 additions and 0 deletions
Binary file not shown.
|
@ -638,6 +638,7 @@ Action Timer_BotMove(Handle h, int userid) {
|
|||
}
|
||||
|
||||
public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2]) {
|
||||
if(!isEnabled) return Plugin_Continue;
|
||||
if(IsFakeClient(client)) {
|
||||
float random = GetURandomFloat();
|
||||
buttons |= (activeBotLocations[client].runto ? IN_WALK : IN_SPEED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue