I have a problem with this plugin,
sometimes he makes the wrong quote other times he disappears from the HUD could someone help me solve this problem
it and plate that counts how many flag were taken
PHP Code:
// Includes
#include < amxmodx >
#include < jctf >
// Team
new score_Team[ 2 ];
// Team ( jCTF )
enum
{
TEAM_NONE = 0,
TEAM_RED,
TEAM_BLUE,
TEAM_SPEC
}
public plugin_init( )
{
register_plugin( "Placar", "0.0.1", "Developer" );
// Register TextMsg
register_event( "TextMsg", "event_TextMsg", "a", "2&#Game_C", "2&#Game_w", "2&#Game_will_restart_in" );
// Task HUD
set_task( 1.0, "scoreFlag", _, _, _, "b" );
}
public event_TextMsg( )
set_task( 3.0, "taskReset" );
public taskReset( )
{
score_Team[ 0 ] = 0;
score_Team[ 1 ] = 0;
}
public jctf_flag( ev, id, tm )
{
if( ev == FLAG_CAPTURED && tm == TEAM_RED )
score_Team[ 0 ] += 1;
if( ev == FLAG_CAPTURED && tm == TEAM_BLUE )
score_Team[ 1 ] += 1;
}
public scoreFlag( )
{
set_dhudmessage( 255, 255, 255, -1.0, 0.0, 0, 0.0, 1.1, 0.0, 0.0 )
show_dhudmessage( 0, "[TR] VS [CT]^n[%d] -- [%d]", score_Team[ 1 ], score_Team[ 0 ] )
}