Quote:
Originally Posted by HamletEagle
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( )
OrpheuRegisterHook( OrpheuGetFunction( "InstallGameRules" ), "OnInstallGameRules", OrpheuHookPost );
public plugin_init( )
OrpheuRegisterHookFromObject( g_pGameRules, "FPlayerCanRespawn", "CGameRules", "OnFPlayerCanRespawn" );
public OnInstallGameRules( )
{
g_pGameRules = OrpheuGetReturn( );
}
public OrpheuHookReturn:OnFPlayerCanRespawn( pGameRules, id )
{
OrpheuSetReturn( false )
return OrpheuOverride;
}