Raised This Month: $ Target: $400
 0% 

DEATHS ZOMG


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-25-2009 , 10:32   Re: DEATHS ZOMG
Reply With Quote #5

If you want to combine it into one function, use the below. If you just want deaths, you can figure it out (I hope).

PHP Code:
SetScoreid 15 );
SetScoreid 10 ); 
PHP Code:
//Global
#define OFFSET_CSDEATHS        444

new g_MsgScoreInfo;

//plugin_init()
g_MsgScoreInfo get_user_msgid"ScoreInfo" );

public 
SetScoreid iFrags iDeaths 
{
    if( !
is_user_connectedid ) )
        return;
        
    
set_pevid pev_frags floatiFrags ) );
    
set_pdata_intid OFFSET_CSDEATHS iDeaths );

    
message_beginMSG_ALL g_MsgScoreInfo );
    
write_byteid );
    
write_shortiFrags );
    
write_shortiDeaths );
    
write_short);
    
write_shortget_user_teamid ) ) ;
    
message_end();

__________________

Last edited by Bugsy; 05-25-2009 at 10:35.
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 01:36.


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