Thread: Plaflag board
View Single Post
Author Message
yRestrict
BANNED
Join Date: Apr 2019
Old 02-05-2020 , 06:04   Plaflag board
Reply With Quote #1

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];

// 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_task1.0"scoreFlag"___"b" );
}

public 
event_TextMsg( )
    
set_task3.0"taskReset" );

public 
taskReset( )
{
    
score_Team] = 0;
    
score_Team] = 0;
}

public 
jctf_flagevidtm )
{
    if( 
ev == FLAG_CAPTURED && tm == TEAM_RED )
        
score_Team] += 1;
    
    if( 
ev == FLAG_CAPTURED && tm == TEAM_BLUE )
        
score_Team] += 1;
}

public 
scoreFlag( )
{
    
set_dhudmessage255255255, -1.00.000.01.10.00.0 )
    
show_dhudmessage0"[TR] VS [CT]^n[%d] -- [%d]"score_Team], score_Team] )

yRestrict is offline