Raised This Month: $ Target: $400
 0% 

Setting m_iNumRespawns + Supercede CS_RoundRespawn crashes?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 17:42   Re: Setting m_iNumRespawns + Supercede CS_RoundRespawn crashes?
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
You can not comment the entire function, you' ll get runtime errors. Comment only the code from the function.

Anyway, enough with this back and forth guessing. Give me some code I can test and get a crash(code should be minimal).
PHP Code:
new g_pGameRules;

public 
plugin_precache( )
OrpheuRegisterHookOrpheuGetFunction"InstallGameRules" ), "OnInstallGameRules"OrpheuHookPost );

public 
plugin_init( )
OrpheuRegisterHookFromObjectg_pGameRules"FPlayerCanRespawn""CGameRules""OnFPlayerCanRespawn" );

public 
OnInstallGameRules( )  

    
g_pGameRules OrpheuGetReturn( );  
}

public 
OrpheuHookReturn:OnFPlayerCanRespawnpGameRulesid )  
{  
    
OrpheuSetReturnfalse )  
    return 
OrpheuOverride;  

Attached Files
File Type: zip Orpheu.zip (68.5 KB, 24 views)
__________________
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-05-2018 , 18:10   Re: Setting m_iNumRespawns + Supercede CS_RoundRespawn crashes?
Reply With Quote #2

*IMPORTANT* It works under windows lol
__________________
edon1337 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 12:33.


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