This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Help] I begin again of Score.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
twiister
Senior Member
Join Date: Mar 2013
Location: Argentina
Old 02-04-2014 , 16:58   [Help] I begin again of Score.
Reply With Quote #1

With this Code. (the round is not begun again with the 'sv_restart')

PHP Code:
new g_iScore[2]
new 
g_iLastTeamScore[2]

public 
Event_TeamScore()
{
    new 
szTeamName[2]
    
read_data(1szTeamName1)
    
    new 
iTeam = (szTeamName[0] == 'T') ? 1
    
new iScore read_data(2)
    new 
iScoreOffset iScore g_iLastTeamScore[iTeam]
    
    if(
iScoreOffset 0)
    {
        
g_iScore[iTeam] += iScoreOffset
    
}
    
    
g_iLastTeamScore[iTeam] = iScore
}

public 
ClientCommand_SayScore(id)
{
    
client_print(0,print_chat"Score : T's %d - %d CT's"g_iScore[0], g_iLastTeamScore[1])
    return 
PLUGIN_HANDLED

Hello, I would like to know if it is possible to add this idea:

Example: (Not to overcome the 15 of score between if)

* Score: 02 T - 05 CT -----> sv_restart ----> it returns to "0"

* Score: 03 T - 08 CT -----> sv_restart ----> it returns to "0"

Example: (to overcome the 15 of score between if)

* Score: 10 T - 08 CT -----> sv_restart ----> it returns to score with which I go over to 15 rounds

* Score: 06 T - 14 CT -----> sv_restart ----> it returns to score with which I go over to 15 rounds

Code:
 Thanks to that they always help. Greetings.
twiister 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 20:03.


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