Raised This Month: $ Target: $400
 0% 

Help mode CT Rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
addons47
New Member
Join Date: Jun 2012
Old 06-14-2012 , 04:36   Help mode CT Rounds
Reply With Quote #1

Hello everyone,

I have CT Mod Rounds and I can not add /round name Small Description: cute examines several rounds City resides.

Code:
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
 
 
new CTRounds[ 33 ];
 
 
public plugin_init()
{
        register_plugin( "15 CT Rounds", "1.0", "ImNativus" );
       
        register_event( "SendAudio", "EventTeamWin", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin", "2&%!MRAD_ROUNDDRAW" );
       
        RegisterHam( Ham_Spawn, "player", "FwdPlayerSpawn", 1 );
}
 
 
public FwdPlayerSpawn( client )
{
        if ( !is_user_connected( client ) || !is_user_alive( client ) )
                return;
       
        if ( cs_get_user_team( client ) == CS_TEAM_CT )
        {
                if ( CTRounds[ client ] + 1 <= 15 )
                {
                        client_print( client, print_chat, "Its your %d/15 Rounds at CT", CTRounds[ client ] + 1 );
                }
               
                else
                {
                        cs_set_user_team( client, CS_TEAM_T );
                       
                        ExecuteHamB( Ham_CS_RoundRespawn, client );
                }
        }
       
        else
        {
                CTRounds[ client ] = 0;
        }
}
 
 
public EventTeamWin( )
{
        for ( new i = 1; i <= get_maxplayers(); i++ )
        {
                if ( !is_user_connected( i ) || cs_get_user_team( i ) != CS_TEAM_CT )
                        continue;
               
                CTRounds[ i ]++;
        }
}

Last edited by addons47; 06-14-2012 at 04:36.
addons47 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode