Raised This Month: $ Target: $400
 0% 

[L4D2] How to stop plugin when HookEvent is triggered


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-07-2022 , 20:42   Re: [L4D2] How to stop plugin when HookEvent is triggered
Reply With Quote #2

Probably what happens is that you set "Speeding[client] = false" but in the next frame it backs to "true" again, cause OnPlayerRunCmd run dozen times per seconds.

Basically you need to track the event between the ability starts, and when it ends, block it in another variable and while "true", return Plugin_Continue
__________________
Marttt is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode