Raised This Month: $ Target: $400
 0% 

[Solved] Bitsums


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 12:51   [Solved] Bitsums
Reply With Quote #1

trash

Last edited by #8 SickneSS; 02-08-2011 at 22:59.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-13-2010 , 13:12   Re: TeamScore issue
Reply With Quote #2

So, sending a TeamScore event should be enough.
__________________
Arkshine is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 13:18   Re: TeamScore issue
Reply With Quote #3

Yeh,but Im ussing it to get the first half scores,and I want it in seccond half.

Code:
public EventTeamScore() {         if(get_pcvar_num(Enable))     {             new Team[2]         read_data(1,Team,1)                 if(Team[0] == 'C')             ScoreCT = read_data(2)                 if(Team[0] == 'T')             ScoreT = read_data(2)                     if(Half2)         {           /*  ??? */         }     } }
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-13-2010 , 14:41   Re: TeamScore issue
Reply With Quote #4

What ?
__________________
Arkshine is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 15:05   Re: TeamScore issue
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
What ?
Just,how to?...I don't know how to edit them..
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-13-2010 , 15:13   Re: TeamScore issue
Reply With Quote #6

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.
__________________

Last edited by Hunter-Digital; 07-13-2010 at 15:19.
Hunter-Digital is offline
Old 07-13-2010, 16:00
#8 SickneSS
This message has been deleted by #8 SickneSS.
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 16:56   Re: TeamScore issue
Reply With Quote #7

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
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-13-2010 , 16:57   Re: TeamScore issue
Reply With Quote #8

If i am not wrong, he want internally but is confused... he DON'T want fake numbers (or i am wrong sickness?).
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 07-13-2010 , 17:08   Re: TeamScore issue
Reply With Quote #9

Quote:
Originally Posted by Alucard^ View Post
If i am not wrong, he want internally but is confused... he DON'T want fake numbers (or i am wrong sickness?).
Sorry,I don't know how to say it in english,so..Alucard translate this please...

[ES]
Vos sabes como trabaja mixmaker,uso 4 Arrays y 1 boolean para tomar los scores de cada team y detectar la primera parte,usando el evento round_end,al terminar la primera parte que seria sumando un total de esta forma...
PHP Code:
ScoreT+ScoreCT == 15 
...cambio los teams y como tengo 2 arrays mas las uso del siguiente modo...
PHP Code:
TotalCT ScoreT
TotalT 
ScoreCT 
...Eso seria ya intercambiar los scores,ahora lo que trato de hacer es que en la segunda parte,al ver el scoreboard,se muestren los scores como tendrian que ir,ejemplo...Si los terroristas tenian 8 en la primera mitad y los cts 7,se pasan y los terroristas tendran 7 y los cts 8,yo quiero que al cambiar los equipos,estos cambien tambien sus escores,osea,vos me entendes jaja...la cosa,es que no se como hacerlo.
[/ES]

[off]Podes conectarte? Necesito preguntarte algo,no es nada sobre scripting.[/off]
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-13-2010 , 18:39   Re: TeamScore issue
Reply With Quote #10

[ES]

La hiciste re larga al pedo xddd

[EN]

In resume, he want to change team score internally.. so he should use orpheu.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 07:15.


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