Nick: RealWolf. Grad: MembruMesaje : 379 Bani : 2532 Multumiri : 2
| Subiect: [Plugin] Switch Team ( Furien ) Dum Iul 12, 2015 11:15 am | |
| Titlu: Switch Team Descriere: Acest plugin are rolul de a schimba echipele cand CT castiga. Download: - Cod:
-
/* Switch Team ================================ | SkepT Jr. | ================================ Copyright © 2015, SkepT Jr. */
#include <amxmodx> #include <cstrike>
#define PLUGIN "Swich Team" #define VERSION "v1" #define AUTHOR "SkepT Jr."
#define TEAM_FURIEN CS_TEAM_T #define TEAM_ANTIFURIEN CS_TEAM_CT #define TASK_SWITCH 112233
public plugin_init( ) { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("SendAudio", "CT_Win", "a", "1=0", "2=%!MRAD_ctwin") }
public CT_Win( ) { new jucatori[32], num; get_players(jucatori, num, "ch") if( num ) { new id; for( --num; num >= 0; num-- ) { id = jucatori[ num ] Schimbarea( id ) } } }
public Schimbarea( id ) { switch( id ) { case 1..32: set_task( 0.1, "Switching", id + TASK_SWITCH ) } }
public Switching( id ) { id -= TASK_SWITCH if( !is_user_connected( id ) ) return 1 switch( cs_get_user_team( id ) ) { case TEAM_FURIEN: cs_set_user_team( id, TEAM_ANTIFURIEN ) case TEAM_ANTIFURIEN: cs_set_user_team( id, TEAM_FURIEN ) } client_print( id, print_chat, "Team's was switched.") return 0 }
Nume: Switch Team Versiunea: V1 Instalare: 1. Compilam sursa 2. Fisierul nume_plugin.sma il puneti in addons/amxmodx/scripting 3. Fisierul nume_plugin.amxx il puneti in addons/amxmodx/plugins 4. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: - Cod:
-
nume_plugin.amxx Cvars:-
|
|