Raised This Month: $ Target: $400
 0% 

[Solved] Bitsums


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 16:56   Re: TeamScore issue
Reply With Quote #8

Quote:
Originally Posted by Hunter-Digital View Post
First half and second half scores for each team ?

If so:

PHP Code:
/* round number stored in this */
new g_iRound

/* first it's "first or second half" and second it's the team */
new g_iScore[2][2]

new 
pCvar_mp_maxrounds

public plugin_init()
{
      
register_message(get_user_msgid("TeamScore"), "msg_TeamScore")

      
pCvar_mp_maxrounds get_pcvar_pointer("mp_maxrounds")
}

public 
msg_TeamScore()
{
      new 
iHalf
      
new iTeam
      
new szTeam[2]

      
get_msg_arg_string(1szTeamcharsmax(szTeam))

      if(
g_iRound > (get_pcvar_num(pCvar_mp_maxrounds) / 2))
           
iHalf 1

      
if(szTeam[0] == 'C')
           
iTeam 1

      set_msg_arg_int
(2ARG_SHORTg_iScore[iHalf][iTeam])

This code just sets team scores to g_iScore values, you have to alter that variable and the g_iRound yourself as you need.
Thanks,but doesn't works.

Last edited by #8 SickneSS; 07-13-2010 at 18:16.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 



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 07:15.


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