Raised This Month: $ Target: $400
 0% 

Offset for TeamScore?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-06-2010 , 04:42   Re: Offset for TeamScore?
Reply With Quote #1

I want not to catch the scores, I want to use my own scores. If I set my scores and a player respawns he got the original scores from cs. Ofcourse I could hook the TeamScore with register_message, but I search for an offset. Anywhere must be saved the scores.

PHP Code:
public func_team_scored(iTeamid){
    new 
iDeaths cs_get_user_deaths(id), iFrags pev(idpev_frags) + 5
    set_pev
(idpev_fragsiFrags)
    
g_iScore[iTeam]++

    
message_begin(MSG_BROADCASTgMsgScoreInfo)
    
write_byte(id)
    
write_short(iFrags)
    
write_short(iDeaths)
    
write_short(0)
    
write_short(iTeam)
    
message_end()

    
message_begin(MSG_BROADCASTgMsgTeamScore)
    
write_string(iTeam == TEAM_T "TERRORIST" "CT")
    
write_short(g_iScore[iTeam])
    
message_end()

Leon M. is offline
Reply



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