AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Bitsums (https://forums.alliedmods.net/showthread.php?t=132276)

#8 SickneSS 07-13-2010 12:51

[Solved] Bitsums
 
trash

Arkshine 07-13-2010 13:12

Re: TeamScore issue
 
So, sending a TeamScore event should be enough.

#8 SickneSS 07-13-2010 13:18

Re: TeamScore issue
 
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)         {           /*  ??? */         }     } }

Arkshine 07-13-2010 14:41

Re: TeamScore issue
 
What ?

#8 SickneSS 07-13-2010 15:05

Re: TeamScore issue
 
Quote:

Originally Posted by Arkshine (Post 1237937)
What ?

Just,how to?...I don't know how to edit them..

Hunter-Digital 07-13-2010 15:13

Re: TeamScore issue
 
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.

#8 SickneSS 07-13-2010 16:56

Re: TeamScore issue
 
Quote:

Originally Posted by Hunter-Digital (Post 1237981)
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.

Alucard^ 07-13-2010 16:57

Re: TeamScore issue
 
If i am not wrong, he want internally but is confused... he DON'T want fake numbers (or i am wrong sickness?).

#8 SickneSS 07-13-2010 17:08

Re: TeamScore issue
 
Quote:

Originally Posted by Alucard^ (Post 1238093)
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]

Alucard^ 07-13-2010 18:39

Re: TeamScore issue
 
[ES]

La hiciste re larga al pedo xddd

[EN]

In resume, he want to change team score internally.. so he should use orpheu.


All times are GMT -4. The time now is 07:15.

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