Raised This Month: $ Target: $400
 0% 

Set Deaths?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-08-2009 , 15:17   Re: Set Deaths?
Reply With Quote #4

If you prefer fakemeta, include fakemeta_util this can be used to do both scores.

PHP Code:
#define OFFSET_CSDEATHS        444
g_MsgScoreInfo get_user_msgid("ScoreInfo");

public 
SetScore(id iFrags iDeaths iTeam 
{
    if( !
is_user_connected(id) )
        return;
        
    if( 
iFrags )
        
fm_set_user_fragsid iFrags);

    if( 
iDeaths )
        
set_pdata_int(idOFFSET_CSDEATHS iDeaths);
    
    
message_begin(MSG_ALL g_MsgScoreInfo );
    
write_byte(id);
    
write_short(iFrags);
    
write_short(iDeaths);
    
write_short(0);
    
write_short(iTeam);
    
message_end();

__________________
Bugsy 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 09:01.


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