|
BANNED
|
02-06-2020
, 20:35
Re: Placa plaflag
|
#3
|
Quote:
Originally Posted by Bugsy
Untested
PHP Code:
// Includes
#include < amxmodx >
#include < jctf >
enum Teams
{
TEAM_NONE = 0,
TEAM_RED,
TEAM_BLUE,
TEAM_SPEC
}
new score_Team[ Teams ];
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[ TEAM_RED ] = 0;
score_Team[ TEAM_BLUE ] = 0;
}
public jctf_flag( ev, id, tm )
{
if( ev == FLAG_CAPTURED && tm == TEAM_RED )
score_Team[ TEAM_RED ] += 1;
if( ev == FLAG_CAPTURED && tm == TEAM_BLUE )
score_Team[ TEAM_BLUE ] += 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[ TEAM_RED ], score_Team[ TEAM_BLUE ] )
}
|
===== c:\Users\maxtr\Downloads\Placar_1.sma =====
WARNING [37]: tag mismatch
WARNING [40]: tag mismatch
|
|
|
|