Thread: Plaflag board
View Single Post
yRestrict
BANNED
Join Date: Apr 2019
Old 02-06-2020 , 20:35   Re: Placa plaflag
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
Untested

PHP Code:
// Includes
#include <  amxmodx >
#include <   jctf   >

enum Teams
{
    
TEAM_NONE 0,
    
TEAM_RED,
    
TEAM_BLUE,
    
TEAM_SPEC
}

new 
score_TeamTeams ];

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_TeamTEAM_RED ] = 0;
    
score_TeamTEAM_BLUE ] = 0;
}

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

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

===== c:\Users\maxtr\Downloads\Placar_1.sma =====
WARNING [37]: tag mismatch
WARNING [40]: tag mismatch
yRestrict is offline