Raised This Month: $ Target: $400
 0% 

Smac walhack l4d2 error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 06-28-2015 , 13:42   Smac walhack l4d2 error
Reply With Quote #1

PHP Code:
L 06/28/2015 19:41:01: [SMException reportedGame event "player_first_spawn" has no active hook
L 06
/28/2015 19:41:01: [SMBlaming pluginsmac_wallhack.smx
L 06
/28/2015 19:41:01: [SMCall stack trace:
L 06/28/2015 19:41:01: [SM]   [0UnhookEvent
L 06
/28/2015 19:41:01: [SM]   [1Line 342smac_wallhack.sp::Wallhack_Disable()
L 06/28/2015 19:41:01: [SM]   [2Line 253smac_wallhack.sp::OnSettingsChanged() 
sm version 1.8.0

Its smacs latest build.
checkster is offline
stickz
Senior Member
Join Date: Oct 2012
Location: Ontario, Canada
Old 07-09-2015 , 15:18   Re: Smac walhack l4d2 error
Reply With Quote #2

Create a boolean at the near top of your smac wallhack code.

Code:
new bool:g_HasHookedEvent = false;
In the Wallhack_Enable() function, you will see it hook event "player_first_spawn" and "ghost_spawn_time" events. Bellow that add the following code.

Code:
g_HasHookedEvent = true;
In the Wallhack_Disable() function, you will see unhook event "player_first_spawn" and "ghost_spawn_time". Create an if statement so it can't unhook something that was never hooked.

Code:
if (g_HasHookedEvent == true)
{
   UnhookEvent...
   UnhookEvent...
   g_HasHookedEvent = false;
}

Last edited by stickz; 07-09-2015 at 15:19.
stickz is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 07-10-2015 , 13:19   Re: Smac walhack l4d2 error
Reply With Quote #3

Cheers will try that, appreciate it
checkster is offline
Reply



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 14:34.


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