Disable RunCmd when not enabled

This commit is contained in:
Jackz 2022-06-30 18:46:36 -05:00
parent 44d407a937
commit bf3058751f
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View file

@ -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);