Raised This Month: $ Target: $400
 0% 

Offset for TeamScore?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
epic .
Senior Member
Join Date: Oct 2009
Location: China
Old 05-06-2010 , 03:39   Re: Offset for TeamScore?
Reply With Quote #2

I don`t konw if I misread you, this code can save the teamscore into g_TeamScore[ CsTeams ]
Code:
new g_TeamScore[ CsTeams ]
public plugin_init()
{
    register_event("TeamScore", "fw_EvTeamScore", "a")
}
public fw_EvTeamScore()
{
    new szTeam[2];
    read_data(1, szTeam, 1);
    g_TeamScore[ ( szTeam[0] == 'T' ) ? CS_TEAM_T : CS_TEAM_CT ] = read_data(2);
}
__________________
Quote:
Destinies in my AWP sight are all alike;
Destinies out of my AWP sight in its own way.
epic . is offline
Send a message via ICQ to epic .
 



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


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