Raised This Month: $ Target: $400
 0% 

[ Solved ] Config


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 08-10-2008 , 07:07   Re: set_user_team in fakemeta & config
Reply With Quote #2

PHP Code:
#define OFFSET_TEAM     114

enum
{
    
CS_TEAM_UNASSIGNED 0,
    
CS_TEAM_T,
    
CS_TEAM_CT,
    
CS_TEAM_SPECTATOR
};

stock fm_set_user_team(index, {CsTeams,_}:teamupdate 1)
{
    
set_pdata_int(indexOFFSET_TEAM_:team);
    
set_pev(indexpev_team_:team);

    if(
update)
    {
        static 
_msg_teaminfo; if(!_msg_teaminfo_msg_teaminfo get_user_msgid("TeamInfo");
        static 
teaminfo[][] = { "UNASSIGNED""TERRORIST""CT""SPECTATOR" };
        
        
message_begin(MSG_ALL_msg_teaminfo);
        
write_byte(index);
        
write_string(teaminfo[_:team]);
        
message_end();
    }

    return 
1;

__________________
atomen is offline
Send a message via MSN to atomen
 



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 05:39.


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