Raised This Month: $51 Target: $400
 12% 

intender don't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lexzor
Veteran Member
Join Date: Nov 2020
Old 04-01-2021 , 20:49   intender don't work
Reply With Quote #1

hello, i have this code
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <cstrike>

new my_data_2_store[3], 
first_team[4],
second_team[4],
iDeaths[MAX_PLAYERS 1],
iFrags[MAX_PLAYERS 1],
gmsgScoreInfo,
bool:iStarted,
iText[33],
bool:iPluginEnd

new const iTag[] = "^4[CSGO.WARFACE.RO]^1"

new say_cmd[][] = 
{
"/warmup",
"/start",
"/stop",
"/end"    
}

new 
iTextContain[][] = 
{
"Runda de incalzire !",
"Meciul a luat sfarsit!"
}

public 
plugin_init()
{
register_event "SendAudio""t_win""a""2&%!MRAD_terwin" );
register_event "SendAudio""ct_win""a""2&%!MRAD_ctwin" );
register_logevent("event_new_round"2"1=Round_Start"
register_logevent("event_round_end"2"1=Round_End"

register_clcmd("say""say_hook")
register_clcmd("say_team""say_hook")

iPluginEnd true

gmsgScoreInfo 
get_user_msgid("ScoreInfo");
set_task(1.0,"CheckPlayers",.flags="b");
}

public 
say_hook (id)
{
new 
iSay[33]
read_argv(1iSaycharsmax(iSay))

if(
containi(iSaysay_cmd[0]) != -1)
{
server_cmd("amx_cvar mp_roundtime 300")
server_cmd("amx_cvar sv_restart 1")
iStarted false
iPluginEnd 
false
iText 
iTextContain[0]
client_print_color(0print_team_default"%s Runda de incalzire a inceput!"iTag)
}
else if(
containi(iSaysay_cmd[1]) != -1)
{
server_cmd("amx_cvar mp_roundtime 120")
server_cmd("amx_cvar sv_restart 1")
read_argv(1first_teamcharsmax(first_team))
read_argv(2second_teamcharsmax(second_team))
iStarted true
client_print_color
(0print_team_default"%s Meciul intre echipa ^4%s^1 si ^4%s^1 a inceput!"iTagfirst_teamsecond_team)
client_print_color(0print_team_default"%s Mult noroc ambelor echipe!"iTag)
}
else if(
containi(iSaysay_cmd[2]) != -1)
{
new 
iArg[4]
read_argv(1iArgcharsmax(iArg))
}
}

public 
event_new_round ( )
{
my_data_2_store[0]++
new 
iPlayers[MAX_PLAYERS], iNumiPlayerxy[4]

while (
my_data_2_store[0] - my_data_2_store[1] + my_data_2_store[2])
{
my_data_2_store[0]--
}

if(
my_data_2_store[0] == 16)
{
get_players(iPlayersiNum)
for (new 
0iNumi++)
{
    
iPlayer iPlayers[i]
    
cs_set_user_deaths(iPlayeriDeaths[i])
    
fm_set_user_frags(iPlayeriFrags[i])
    
message_begin(MSG_ALL,gmsgScoreInfo)
    
write_byte(iPlayer)
    
write_short(iFrags[i])
    
write_short(iDeaths[i])
    
write_short(0)
    
write_short(cs_get_user_team(iPlayer))
    
message_end()
}

my_data_2_store[1]
first_team

first_team 
second_team
second_team 
y

my_data_2_store
[1] = my_data_2_store[2]
my_data_2_store[2] = x    
}
else if (
my_data_2_store[0] == 30)
{
if (
my_data_2_store[1] == my_data_2_store[2])
{
    
client_print_color(0print_team_default"%s Datorita unei egalitati, se vor mai juca inca ^43 runde^1!"iTag)
    
client_print_color(0print_team_default"%s Bafta la departajare!"iTag)
    return 
PLUGIN_HANDLED
}
else
{
    if(
my_data_2_store[1] > my_data_2_store[2])
    {
        
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagfirst_team)
        
iPluginEnd true
        
return PLUGIN_HANDLED
    
}
    else if(
my_data_2_store[1] > my_data_2_store[2])
    {
        
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagsecond_team)
        
iPluginEnd true
        
return PLUGIN_HANDLED
    
}
}

}
else if (
my_data_2_store[0] == 33)
{

}

return 
PLUGIN_CONTINUE
}

public 
event_round_end(id)
{
new 
iPlayers[MAX_PLAYERS], iNumiPlayer

if (my_data_2_store[0] == 15)
{
get_players(iPlayersiNum)
for (new 
0iNumi++)
{
    
iPlayer iPlayers[i]
    
iDeaths[i] = get_user_deaths(iPlayer)
    
iFrags[i] = get_user_frags(iPlayer)
}
}
}

public 
t_win ( )
{
my_data_2_store ] ++;
}

public 
ct_win ( )
{

my_data_2_store ] ++;
}

public 
CheckPlayers ( ) {
if(
iPluginEnd)
return 
PLUGIN_HANDLED

if ( iStarted )
{
    
set_dhudmessage 51102153, -1.00.0616.03.0 );
    
show_dhudmessage 0"Round: %02d",my_data_2_store[0] );
    
    
set_dhudmessage 1562550, -1.00.0916.03.0 );
    
show_dhudmessage 0"%s: %02d         -         %s: %02d"first_teammy_data_2_store ], second_teammy_data_2_store[2] );
}
else 
{
    
set_dhudmessage 51102153, -1.00.0616.03.0 );
    
show_dhudmessage 0"%s"iText );
}
return 
PLUGIN_CONTINUE

i have this errors
Code:
AMX Mod X Compiler 1.10.0.5402
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Array sizes do not match, or destination array is too small on line 59
Warning: Tag mismatch on line 102

1 Error.
Could not locate output file C:\Users\super\Desktop\scripting\compiled\Untitled.amx (compile failed).
and why my amxx studio don t want to intend it ?

Last edited by lexzor; 04-01-2021 at 20:49.
lexzor is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-01-2021 , 21:18   Re: intender don't work
Reply With Quote #2

Assuming variable iText is supposed to hold a string:

PHP Code:
//Replace
iText iTextContain[0]
//with
copyiText charsmaxiText ) , iTextContain[0]) 
__________________

Last edited by Bugsy; 04-01-2021 at 21:19.
Bugsy is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 04-02-2021 , 12:57   Re: intender don't work
Reply With Quote #3

Thank you, i just learned smth new!

What about that warning and unintended code ?
lexzor is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-02-2021 , 13:06   Re: intender don't work
Reply With Quote #4

I think there is a tutorial about code formatting/indentation. Warnings vary based on what the compiler doesn't like..you sometimes need some experience in order to resolve them.
__________________
Bugsy is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 04-02-2021 , 13:52   Re: intender don't work
Reply With Quote #5

the code didn t intented using ctrl + i when i used return PLUGIN_CONTINUE at the end of some functions

this is manually intented code:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <cstrike>

new my_data_2_store[3], 
first_team[4],
second_team[4],
iDeaths[MAX_PLAYERS 1],
iFrags[MAX_PLAYERS 1],
gmsgScoreInfo,
bool:iStarted,
iText[33],
bool:iPluginEnd

new const iTag[] = "^4[CSGO.WARFACE.RO]^1"

new say_cmd[][] = 
{
"/warmup",
"/start",
"/stop",
"/end"    
}

new 
iTextContain[][] = 
{
"Runda de incalzire !",
"Meciul a luat sfarsit!"
}

public 
plugin_init()
{
    
register_event "SendAudio""t_win""a""2&%!MRAD_terwin" );
    
register_event "SendAudio""ct_win""a""2&%!MRAD_ctwin" );
    
register_logevent("event_new_round"2"1=Round_Start"
    
register_logevent("event_round_end"2"1=Round_End"
    
    
register_clcmd("say""say_hook")
    
register_clcmd("say_team""say_hook")
    
    
iPluginEnd true
    
    gmsgScoreInfo 
get_user_msgid("ScoreInfo");
    
set_task(1.0,"CheckPlayers",.flags="b");
}

public 
say_hook (id)
{
    new 
iSay[33]
    
read_argv(1iSaycharsmax(iSay))
    
    if(
containi(iSaysay_cmd[0]) != -1)
        {
        
server_cmd("amx_cvar mp_roundtime 300")
        
server_cmd("amx_cvar sv_restart 1")
        
iStarted false
        iPluginEnd 
false
        copy
(iTextcharsmax(iText), iTextContain[0]) 
        
client_print_color(0print_team_default"%s Runda de incalzire a inceput!"iTag)
    }
    else if(
containi(iSaysay_cmd[1]) != -1)
    {
        
server_cmd("amx_cvar mp_roundtime 120")
        
server_cmd("amx_cvar sv_restart 1")
        
read_argv(1first_teamcharsmax(first_team))
        
read_argv(2second_teamcharsmax(second_team))
        
iStarted true
        client_print_color
(0print_team_default"%s Meciul intre echipa ^4%s^1 si ^4%s^1 a inceput!"iTagfirst_teamsecond_team)
        
client_print_color(0print_team_default"%s Mult noroc ambelor echipe!"iTag)
    }
    else if(
containi(iSaysay_cmd[2]) != -1)
    {
        new 
iArg[4]
        
read_argv(1iArgcharsmax(iArg))
    }
}

public 
event_new_round ( )
{
    
my_data_2_store[0]++
    new 
iPlayers[MAX_PLAYERS], iNumiPlayerxy[4]
    
    while (
my_data_2_store[0] - my_data_2_store[1] + my_data_2_store[2])
    {
        
my_data_2_store[0]--
    }
    
    if(
my_data_2_store[0] == 16)
    {
        
get_players(iPlayersiNum)
        
            for (new 
0iNumi++)
            {
                
iPlayer iPlayers[i]
                
cs_set_user_deaths(iPlayeriDeaths[i])
                
fm_set_user_frags(iPlayeriFrags[i])
                
message_begin(MSG_ALL,gmsgScoreInfo)
                
write_byte(iPlayer)
                
write_short(iFrags[i])
                
write_short(iDeaths[i])
                
write_short(0)
                
write_short(cs_get_user_team(iPlayer))
                
message_end()
            }
        
        
my_data_2_store[1]
        
first_team
        
        first_team 
second_team
        second_team 
y
        
        my_data_2_store
[1] = my_data_2_store[2]
        
my_data_2_store[2] = x    
    
}
    else if (
my_data_2_store[0] == 30)
    {
        if (
my_data_2_store[1] == my_data_2_store[2])
        {
            
client_print_color(0print_team_default"%s Datorita unei egalitati, se vor mai juca inca ^43 runde^1!"iTag)
            
client_print_color(0print_team_default"%s Bafta la departajare!"iTag)
            return 
PLUGIN_HANDLED
        
}
        else
        {
            if(
my_data_2_store[1] > my_data_2_store[2])
            {
                
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagfirst_team)
                
iPluginEnd true
                
return PLUGIN_HANDLED
            
}
            else if(
my_data_2_store[1] > my_data_2_store[2])
            {
                
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagsecond_team)
                
iPluginEnd true
                
return PLUGIN_HANDLED
            
}
        }
    
    }
    else if (
my_data_2_store[0] == 33)
    {
    
    }
    
return 
PLUGIN_CONTINUE
}
    
public 
event_round_end(id)
{
new 
iPlayers[MAX_PLAYERS], iNumiPlayer
    
    
if (my_data_2_store[0] == 15)
    {
        
get_players(iPlayersiNum)
        
        for (new 
0iNumi++)
        {
            
iPlayer iPlayers[i]
            
iDeaths[i] = get_user_deaths(iPlayer)
            
iFrags[i] = get_user_frags(iPlayer)
        }
    }
}

public 
t_win ( )
{
    
my_data_2_store ] ++;
}

public 
ct_win ( )
{
    
my_data_2_store ] ++;
}

public 
CheckPlayers ( ) {
    if(
iPluginEnd)
        return 
PLUGIN_HANDLED
    
    
if ( iStarted )
    {
        
set_dhudmessage 51102153, -1.00.0616.03.0 );
        
show_dhudmessage 0"Round: %02d",my_data_2_store[0] );
        
        
set_dhudmessage 1562550, -1.00.0916.03.0 );
        
show_dhudmessage 0"%s: %02d         -         %s: %02d"first_teammy_data_2_store ], second_teammy_data_2_store[2] );
    }
    else 
    {
        
set_dhudmessage 51102153, -1.00.0616.03.0 );
        
show_dhudmessage 0"%s"iText );
    }
    return 
PLUGIN_CONTINUE


Last edited by lexzor; 04-02-2021 at 14:00.
lexzor is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-02-2021 , 15:19   Re: intender don't work
Reply With Quote #6

You should write your code properly from the start so you don't have to rely on auto indenters.
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-03-2021 , 16:11   Re: intender don't work
Reply With Quote #7

Or simply get a better text editor that has auto-indenting options.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 04-04-2021, 16:03
nG_getwreck
This message has been deleted by nG_getwreck. Reason: -Ching cheng hanji, i'm swear to got i'm bang paul. Xue hua piao piao bei fung chao-
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-04-2021 , 16:06   Re: intender don't work
Reply With Quote #8

Quote:
Originally Posted by lexzor View Post
hello, i have this code
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <cstrike>

new my_data_2_store[3], 
first_team[4],
second_team[4],
iDeaths[MAX_PLAYERS 1],
iFrags[MAX_PLAYERS 1],
gmsgScoreInfo,
bool:iStarted,
iText[33],
bool:iPluginEnd

new const iTag[] = "^4[CSGO.WARFACE.RO]^1"

new say_cmd[][] = 
{
"/warmup",
"/start",
"/stop",
"/end"    
}

new 
iTextContain[][] = 
{
"Runda de incalzire !",
"Meciul a luat sfarsit!"
}

public 
plugin_init()
{
register_event "SendAudio""t_win""a""2&%!MRAD_terwin" );
register_event "SendAudio""ct_win""a""2&%!MRAD_ctwin" );
register_logevent("event_new_round"2"1=Round_Start"
register_logevent("event_round_end"2"1=Round_End"

register_clcmd("say""say_hook")
register_clcmd("say_team""say_hook")

iPluginEnd true

gmsgScoreInfo 
get_user_msgid("ScoreInfo");
set_task(1.0,"CheckPlayers",.flags="b");
}

public 
say_hook (id)
{
new 
iSay[33]
read_argv(1iSaycharsmax(iSay))

if(
containi(iSaysay_cmd[0]) != -1)
{
server_cmd("amx_cvar mp_roundtime 300")
server_cmd("amx_cvar sv_restart 1")
iStarted false
iPluginEnd 
false
iText 
iTextContain[0]
client_print_color(0print_team_default"%s Runda de incalzire a inceput!"iTag)
}
else if(
containi(iSaysay_cmd[1]) != -1)
{
server_cmd("amx_cvar mp_roundtime 120")
server_cmd("amx_cvar sv_restart 1")
read_argv(1first_teamcharsmax(first_team))
read_argv(2second_teamcharsmax(second_team))
iStarted true
client_print_color
(0print_team_default"%s Meciul intre echipa ^4%s^1 si ^4%s^1 a inceput!"iTagfirst_teamsecond_team)
client_print_color(0print_team_default"%s Mult noroc ambelor echipe!"iTag)
}
else if(
containi(iSaysay_cmd[2]) != -1)
{
new 
iArg[4]
read_argv(1iArgcharsmax(iArg))
}
}

public 
event_new_round ( )
{
my_data_2_store[0]++
new 
iPlayers[MAX_PLAYERS], iNumiPlayerxy[4]

while (
my_data_2_store[0] - my_data_2_store[1] + my_data_2_store[2])
{
my_data_2_store[0]--
}

if(
my_data_2_store[0] == 16)
{
get_players(iPlayersiNum)
for (new 
0iNumi++)
{
    
iPlayer iPlayers[i]
    
cs_set_user_deaths(iPlayeriDeaths[i])
    
fm_set_user_frags(iPlayeriFrags[i])
    
message_begin(MSG_ALL,gmsgScoreInfo)
    
write_byte(iPlayer)
    
write_short(iFrags[i])
    
write_short(iDeaths[i])
    
write_short(0)
    
write_short(cs_get_user_team(iPlayer))
    
message_end()
}

my_data_2_store[1]
first_team

first_team 
second_team
second_team 
y

my_data_2_store
[1] = my_data_2_store[2]
my_data_2_store[2] = x    
}
else if (
my_data_2_store[0] == 30)
{
if (
my_data_2_store[1] == my_data_2_store[2])
{
    
client_print_color(0print_team_default"%s Datorita unei egalitati, se vor mai juca inca ^43 runde^1!"iTag)
    
client_print_color(0print_team_default"%s Bafta la departajare!"iTag)
    return 
PLUGIN_HANDLED
}
else
{
    if(
my_data_2_store[1] > my_data_2_store[2])
    {
        
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagfirst_team)
        
iPluginEnd true
        
return PLUGIN_HANDLED
    
}
    else if(
my_data_2_store[1] > my_data_2_store[2])
    {
        
client_print_color(0print_team_default"%s Echipa ^4%s^1 a castigat meciul!"iTagsecond_team)
        
iPluginEnd true
        
return PLUGIN_HANDLED
    
}
}

}
else if (
my_data_2_store[0] == 33)
{

}

return 
PLUGIN_CONTINUE
}

public 
event_round_end(id)
{
new 
iPlayers[MAX_PLAYERS], iNumiPlayer

if (my_data_2_store[0] == 15)
{
get_players(iPlayersiNum)
for (new 
0iNumi++)
{
    
iPlayer iPlayers[i]
    
iDeaths[i] = get_user_deaths(iPlayer)
    
iFrags[i] = get_user_frags(iPlayer)
}
}
}

public 
t_win ( )
{
my_data_2_store ] ++;
}

public 
ct_win ( )
{

my_data_2_store ] ++;
}

public 
CheckPlayers ( ) {
if(
iPluginEnd)
return 
PLUGIN_HANDLED

if ( iStarted )
{
    
set_dhudmessage 51102153, -1.00.0616.03.0 );
    
show_dhudmessage 0"Round: %02d",my_data_2_store[0] );
    
    
set_dhudmessage 1562550, -1.00.0916.03.0 );
    
show_dhudmessage 0"%s: %02d         -         %s: %02d"first_teammy_data_2_store ], second_teammy_data_2_store[2] );
}
else 
{
    
set_dhudmessage 51102153, -1.00.0616.03.0 );
    
show_dhudmessage 0"%s"iText );
}
return 
PLUGIN_CONTINUE

i have this errors
Code:
AMX Mod X Compiler 1.10.0.5402
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Error: Array sizes do not match, or destination array is too small on line 59
Warning: Tag mismatch on line 102

1 Error.
Could not locate output file C:\Users\super\Desktop\scripting\compiled\Untitled.amx (compile failed).
and why my amxx studio don t want to intend it ?
you can continue this one, it's all rewrite from start and it's indented. I wrote it using my bare hands and keyboard, I'm slow typer lol
Attached Files
File Type: sma Get Plugin or Get Source (imlazy_to_complete_this_lol.sma - 34 views - 3.0 KB)
__________________

Last edited by nG_getwreck; 04-04-2021 at 16:16.
nG_getwreck is offline
LondoN
Senior Member
Join Date: Dec 2015
Location: Roman, Romania.
Old 04-04-2021 , 19:21   Re: intender don't work
Reply With Quote #9

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>

new my_data_2_store[3], first_team[4], second_team[4];
new iDeaths[MAX_PLAYERS+1], iFrags[MAX_PLAYERS+1];
new iText[33], gmsgScoreInfo, bool:iStarted, bool:iPluginEnd;

new const iTag[] = "^x4[CSGO.WARFACE.RO]^1";

new say_cmd[][] =
{
	"/warmup",
	"/start",
	"/stop",
	"/end"
};

new iTextContain[][] =
{
	"Runda de incalzire !",
	"Meciul a luat sfarsit!"
};

public plugin_init()
{
	register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
	register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
	register_logevent("event_new_round", 2, "1=Round_Start");
	register_logevent("event_round_end", 2, "1=Round_End");

	register_clcmd("say", "say_hook");
	register_clcmd("say_team", "say_hook");

	gmsgScoreInfo = get_user_msgid("ScoreInfo");
	
	set_task(1.0, "CheckPlayers", .flags="b");

	iPluginEnd = true;
}

public say_hook(id)
{
	new iSay[32];
	read_argv(1, iSay, charsmax(iSay));

	if(containi(iSay, say_cmd[0]) != -1)
	{
		server_cmd("amx_cvar mp_roundtime 300;amx_cvar sv_restart 1");
		iStarted = iPluginEnd = false;
		copy(iText, charsmax(iText), iTextContain[0]);
		client_print_color(0, print_team_default, "%s Runda de incalzire a inceput.", iTag);
	}
	else if(containi(iSay, say_cmd[1]) != -1)
	{
		server_cmd("amx_cvar mp_roundtime 120;amx_cvar sv_restart 1");
		read_argv(1, first_team, charsmax(first_team));
		read_argv(2, second_team, charsmax(second_team));
		iStarted = true;
		client_print_color(0, print_team_default, "%s Meciul intre echipa ^4%s^1 si ^4%s^1 a inceput.", iTag, first_team, second_team);
		client_print_color(0, print_team_default, "%s Mult noroc ambelor echipe.", iTag);
	}
	else if(containi(iSay, say_cmd[2]) != -1)
	{
		new iArg[4];
		read_argv(1, iArg, charsmax(iArg));
	}
}

public event_new_round()
{
	my_data_2_store[0]++;
	new iPlayers[MAX_PLAYERS] iNum, iPlayer, x, y[4];

	while(my_data_2_store[0] - 1 > my_data_2_store[1] + my_data_2_store[2])
	{
		my_data_2_store[0]--;
	}

	if(my_data_2_store[0] == 16)
	{
		get_players(iPlayers, iNum);

		for(new i = 0; i < iNum; i++)
		{
			iPlayer = iPlayers[i];

			cs_set_user_deaths(iPlayer, iDeaths[i]);
			fm_set_user_frags(iPlayer, iFrags[i]);

			message_begin(MSG_ALL, gmsgScoreInfo);
			write_byte(iPlayer);
			write_short(iFrags[i]);
			write_short(iDeaths[i]);
			write_short(0);
			write_short(cs_get_user_team(iPlayer));
			message_end();
		}

		x = my_data_2_store[1], y = first_team;
		first_team = second_team, second_team = y;

		my_data_2_store[1] = my_data_2_store[2];
		my_data_2_store[2] = x;
	}

	else if(my_data_2_store[0] == 30)
	{
		if(my_data_2_store[1] == my_data_2_store[2])
		{
			client_print_color(0, print_team_default, "%s Egalitate, se mai joaca 3 runde", iTag);
			return PLUGIN_HANDLED;
		}
		else
		{
			if(my_data_2_store[1] > my_data_2_store[2])
			{
				client_print_color(0, print_team_default, "%s %s a castigat", iTag, first_team);
				iPluginEnd = true;
				return PLUGIN_HANDLED;
			}

			else if(my_data_2_store[1] > my_data_2_store[2])
			{
				client_print_color(0, print_team_default, "%s %s a castigat", iTag, second_team);
				iPluginEnd = true;
				return PLUGIN_HANDLED;			
			}
		}
	}

	else if(my_data_2_store[0] == 33) { }

	return PLUGIN_CONTINUE;
}

public event_round_end()
{
	new iPlayers[MAX_PLAYERS], iNum, iPlayer;
	
	if(my_data_2_store[0] == 15)
	{
		get_players(iPlayers, iNum);

		for(new i = 0; i < iNum; i++)
		{
			iPlayer = iPlayers[i];
			iDeaths[i] = get_user_deaths(iPlayer);
			iFrags[i] = get_user_frags(iPlayer);
		}
	}
}

public t_win()	my_data_2_store[1]++;
public ct_win()	my_data_2_store[2]++;

public CheckPlayers()
{
	if(iPluginEnd)
	{
		return PLUGIN_HANDLED;
	}

	if(iStarted)
	{
		set_dhudmessage(51, 102, 153, -1.0, 0.06, 1, 6.0, 3.0);
		show_dhudmessage(0, "Round %02d", my_data_2_store[0]);

		set_dhudmessage(156, 255, 0, -1.0, 0.09, 1, 6.0, 3.0);
		show_dhudmessage(0, "%s %02d         -           %s: %02d", first_team, my_data_2_store[1], second_team, my_data_2_store[2]);
	}
	else
	{
		set_dhudmessage(51, 102, 153, -1.0, 0.06, 1, 6.0, 3.0);
		show_dhudmessage(0, iText);
	}

	return PLUGIN_CONTINUE;
}
__________________
LondoN 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 08:31.


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