/* Plugin csailesi.com İçin TheAttacK Tarafından Kodlanmıştır. Satılmaz! */
/* Gerekli Modüller */
#include < amxmodx >
#include < amxmisc >
new Team_Win[ 2 ];
new maxplayers;
new hudsync;
new hudsync2;
public plugin_init ( )
{
register_plugin( "SkorDurumu", "1.2", "Schwertle" ) // www.CSAilesi.com
register_event( "TeamScore", "Team_Score", "a" )
set_task( 0.1, "Fwd_StartFrame", 1, "", 0, "b" )
set_task( 0.1, "Fwd_StartFrame2", 1, "", 0, "b" )
hudsync = CreateHudSyncObj( )
hudsync2 = CreateHudSyncObj( )
maxplayers = get_maxplayers( )
}
/* Publics Baslangıcı */
public Team_Score( )
{
new Team[ 2 ]
read_data( 1, Team, 1 )
if ( Team[ 0 ] == 'C' )
Team_Win[ 0 ] = read_data( 2 )
else if( Team[ 0 ] == 'T' )
Team_Win[ 1 ] = read_data( 2 )
return 0;
}
public Fwd_StartFrame ( id )
{
for ( new id = 1; id <= maxplayers; id++ )
{
set_hudmessage( 255, 255, 0, -1.0, 0.86, 0, 6.0, 1.0 )
ShowSyncHudMsg( id, hudsync, " --> Anti Teroristler : %d <--^n --> Teroristler : %d <--", Team_Win[ 0 ], Team_Win[ 1 ] );
}
}
public Fwd_StartFrame2 ( id )
{
for ( new id = 1; id <= maxplayers; id++ )
{
set_hudmessage(255, 0, 0, -1.0, 0.82, 0, 6.0, 1.0)
ShowSyncHudMsg(id, hudsync2, ".: -> Skor Durumu <- :.")
}
}