PremiumCs
VA AJUTAM CU ORICE PROBLEMA DOAR FACETI-VA CONT !


CAUTAM SERVERE DE ORICE FEL+VA OFERIM AJUTOR DACA E VORBA DESPRE CS/SAU VIATA DE ZI CU ZI!
 
AcasaAcasa  CalendarCalendar  GalerieGalerie  FAQFAQ  MembriMembri  GrupuriGrupuri  InregistrareInregistrare  ConectareConectare  

SPER SA ITI PLACA COMUNITATEA SPUNE CELORLATI !

Distribuiţi | 
 

 Plugin retry in aceias echipa

In jos 
AutorMesaj
Vizitator
Vizitator
avatar


MesajSubiect: Plugin retry in aceias echipa   Dum Mai 11, 2014 5:34 am

Descriere: cereri-cs/retry-in-acela-i-team-t239579.html

Descarcare: Aici
| Ascunde codul
Cod:
#include < amxmodx >

#define PLUGIN_NAME "Retry in same team"
#define PLUGIN_VERSION "1.1b"
#define PLUGIN_AUTHOR "VEN & Hades Ownage"

#pragma semicolon 1

new g_pcvar [ 3 ], UserTeam [ 33 ];

public plugin_init ( ) {

register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );

// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ // HARD CORE =) // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //

register_message ( get_user_msgid ( "ShowMenu" ), "message_show_menu" );
register_message ( get_user_msgid ( "VGUIMenu" ), "message_vgui_menu" );

g_pcvar [ 0 ] = register_cvar ( "retry_team_t", "1" ); // numarul echipei T ( nu modificati )
g_pcvar [ 1 ] = register_cvar ( "retry_team_ct", "2" ); // numarul echipei CT ( nu modificati )

// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ // HARD CORE =) // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //

g_pcvar [ 2 ] = register_cvar ( "retry_class", "5" );
}

public message_show_menu ( msgid, dest, id ) {

static team_select [ ] = "#Team_Select";
static text_code [ sizeof team_select ];

get_msg_arg_string ( 4, text_code, sizeof text_code - 1 );

if ( !equal ( text_code, team_select ) )
return 0;

set_force_team_join_task ( id, msgid );

return 1;
}

public message_vgui_menu ( msgid, dest, id ) {

if ( get_msg_arg_int ( 1 ) != 2 )
return 0;

set_force_team_join_task ( id, msgid );

return 1;
}


public task_force_team_join ( menu_msgid [ ], id ) {

if ( get_user_team ( id ) || !UserTeam [ id ] )
return;

static team [ 2 ], class [ 2 ];
switch ( UserTeam [ id ] ) {

case 1: get_pcvar_string ( g_pcvar [ 0 ], team, sizeof team - 1 );

case 2: get_pcvar_string ( g_pcvar [ 1 ], team, sizeof team - 1 );

}

get_pcvar_string ( g_pcvar [ 2 ], class, sizeof class - 1 );
force_team_join ( id, menu_msgid [ 0 ], team, class );
}

public client_disconnect ( id ) {

switch ( get_user_team ( id ) ) {

case 1: UserTeam [ id ] = 1;

case 2: UserTeam [ id ] = 2;
}
}

stock force_team_join ( id, menu_msgid, team [ ] = "5", class [ ] = "0" ) {

static jointeam [ ] = "jointeam";

if ( class [ 0 ] == '0' ) {

engclient_cmd ( id, jointeam, team );
return;
}

static msg_block, joinclass [ ] = "joinclass";
msg_block = get_msg_block ( menu_msgid );

set_msg_block ( menu_msgid, BLOCK_SET );

engclient_cmd ( id, jointeam, team );
engclient_cmd ( id, joinclass, class );

set_msg_block ( menu_msgid, msg_block );
}

set_force_team_join_task ( id, menu_msgid ) {

static param_menu_msgid [ 2 ];
param_menu_msgid [ 0 ] = menu_msgid;

set_task ( 0.1, "task_force_team_join", id, param_menu_msgid, sizeof param_menu_msgid );
}






Nume: Retry in same team
Versiune: 1.1b
Autor: VEN - baza plugin-ului ( autojoin on connect ) | Hades Ownage - editarea plugin-ului.
Link oficial: http://amxx.info/#!/?p=24

Instalare:
1. Fisierul rist.sma il puneti in addons/amxmodx/scripting
2. Fisierul rist.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
rist.amxx


Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):
retry_class 5 - caracterul jucatorului | default 5 ( random )
Sus In jos
 
Plugin retry in aceias echipa
Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
PremiumCs :: Counter-Strike 1.6 :: Pluginuri :: PLUGINURI FURIEN-
Mergi direct la: