Raised This Month: $ Target: $400
 0% 

Setting m_iNumRespawns + Supercede CS_RoundRespawn crashes?


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

Why does this
PHP Code:
const m_iNumRespawns 365;

public 
plugin_init( )
{
    
RegisterHamHam_CS_RoundRespawn"player""@HamCSRoundRespawn_Pre");
}

public 
client_putinserverid )
{
    
set_pdata_intidm_iNumRespawns);
}

@
HamCSRoundRespawn_Preid )
{
    
log_to_file"Ham.txt""Blocking %d",id );

    return 
HAM_SUPERCEDE;

Crash my game, and this not?
PHP Code:
const m_iNumRespawns 365;

public 
plugin_init( )
{
    
RegisterHamHam_CS_RoundRespawn"player""@HamCSRoundRespawn_Pre");
}

/*public client_putinserver( id )
{
    set_pdata_int( id, m_iNumRespawns, 1 );
}*/

@HamCSRoundRespawn_Preid )
{
    
log_to_file"Ham.txt""Blocking %d",id );

    return 
HAM_SUPERCEDE;

__________________
edon1337 is offline
 



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


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