Plugin say /CT , /T , /SPEC [rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
TeroBoy
Membru, skill +1
Membru, skill +1
Posts: 405
Joined: 06 Jun 2010, 22:08
Detinator Steam: Da
CS Status: Daca citesti sts-ul esty un cretin! :))
Detinator server CS: da
SteamID: black1130
Location: BlaJ CiTy
Been thanked: 38 times
Contact:

25 Sep 2012, 10:58

Sall doresc si eu pluginul acela modificat daca se poate.. vreau ca playerii sa se poata muta singurii utilizand in chat /t sau /ct si sa se mute la ce echipa vor.. fara sa ii sc adminii..
Last edited by Laurentiu P. on 25 Sep 2018, 20:56, edited 1 time in total.
Reason: Topic marcat ca rezolvat!
Sexy.LaLeagane.Ro # +18 iLegaL servER!

Image
Sigilat.ro
User avatar
Hades Ownage
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3186
Joined: 22 Oct 2008, 09:12
Detinator Steam: Da
Detinator server CS: jb.clutch.ro
SteamID: hades-source
Reputatie: Fost Super Moderator
Scripter eXtreamCS
Nume anterior: hadesownage
Utilizator neserios
Location: Iasi
Has thanked: 322 times
Been thanked: 407 times
Contact:

25 Sep 2012, 13:07

Incearca acest plugin
User avatar
TeroBoy
Membru, skill +1
Membru, skill +1
Posts: 405
Joined: 06 Jun 2010, 22:08
Detinator Steam: Da
CS Status: Daca citesti sts-ul esty un cretin! :))
Detinator server CS: da
SteamID: black1130
Location: BlaJ CiTy
Been thanked: 38 times
Contact:

27 Sep 2012, 19:15

Altu ???
Sexy.LaLeagane.Ro # +18 iLegaL servER!

Image
paulica -
Membru, skill 0
Membru, skill 0
Posts: 31
Joined: 05 Sep 2012, 21:41
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Been thanked: 2 times
Contact:

28 Sep 2012, 07:56

User avatar
Andrei.B
Fost administrator
Fost administrator
Posts: 6539
Joined: 17 Aug 2009, 08:15
Detinator Steam: Da
CS Status: Facultate , ocupat, moderez cand pot .
Detinator server CS: Nu detin !
SteamID: andreybci94
Reputatie: Fost Membru Club eXtreamCS (o luna)
Fost Administrator
Nume anterior : bLack, Andrei,krusc
Contribuitor
Location: ConstanTa
Has thanked: 275 times
Been thanked: 558 times
Contact:

28 Sep 2012, 13:58

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu"  //update CoD2.0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /comenzi pentr a vedea o lista cu comenzile tale !");
}

public comenzi(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
vezi daca e bun

Mereu in suflet culorile ( Roş -Albastru )
Image
ImageImage
User avatar
rcN
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 30 Nov 2013, 07:04
Detinator Steam: Da
CS Status: Butonez pe GANKERS.RO
Detinator server CS: Mix1.Gankers.ro
SteamID: rcnpiku
Contact:

02 Dec 2013, 02:14

krusc wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu"  //update CoD2.0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /comenzi pentr a vedea o lista cu comenzile tale !");
}

public comenzi(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
vezi daca e bun
E bun deoarece l-am verificat eu la mine pe servere :D thank
Vizitati Noul Design (Nota 10): http://Gankers.ro - Cautam Staff Acitv si Capabil!
TS.GANKERS.RO - Free channels , Free clans , Free game
dragosCrs
Membru, skill 0
Membru, skill 0
Posts: 4
Joined: 14 Apr 2015, 01:20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

25 Apr 2015, 21:19

si unde trebuie bagat ?
User avatar
uK | iNocenT^^
Membru, skill +1
Membru, skill +1
Posts: 106
Joined: 30 Jan 2015, 15:06
Detinator Steam: Da
Detinator server CS: pgl.freakz.ro
SteamID: kito_sg85
Fond eXtream: 0
Contact:

26 Apr 2015, 10:43

rcN wrote:
krusc wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu"  //update CoD2.0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /comenzi pentr a vedea o lista cu comenzile tale !");
}

public comenzi(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
vezi daca e bun
E bun deoarece l-am verificat eu la mine pe servere :D thank
dragosCrs wrote:si unde trebuie bagat ?
Pai acesta il pui intr-un notepad il salvezi cu un nume si il pui in plugins apoi il treci cu acel nume.amxx in plugin .ini
===========
EDIT
===========
plugin_comenzi.sma il iei si il pui in cstrike/addons/amxmodx/scripting LINK Download - > http://www.girlshare.ro/34705227.7
plugin_comenzi.amxx il iei si il pui in cstrike/addons/amxmodx/plugins LINK Download -> http://www.girlshare.ro/34705239.8
si in cstrike/addons/amxmodx/config/plugin.ini treci linia

Code: Select all

plugin_comenzi.amxx
Si schimbi mapa
Daca nici acu nu intelegi ... imi dau foc
Image
CONNECT PGL.FREAKZ.RO...:::PROFESSIONAL SERVER 2015:::...
Image
User avatar
rcN
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 30 Nov 2013, 07:04
Detinator Steam: Da
CS Status: Butonez pe GANKERS.RO
Detinator server CS: Mix1.Gankers.ro
SteamID: rcnpiku
Contact:

19 Aug 2015, 10:43

krusc eXtream wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu"  //update CoD2.0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /comenzi pentr a vedea o lista cu comenzile tale !");
}

public comenzi(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
vezi daca e bun
Poti sa faci sa mearga sa scri in chat: /comenzi ?
Deoarece nu merge arata doar mesaju: tastati in chat / comenzi
Vizitati Noul Design (Nota 10): http://Gankers.ro - Cautam Staff Acitv si Capabil!
TS.GANKERS.RO - Free channels , Free clans , Free game
ggamer3029929
Membru, skill +1
Membru, skill +1
Posts: 102
Joined: 24 Mar 2015, 19:27
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

19 Aug 2015, 11:11

Voi va uitati macar la data? Aceasta cerere e din 2012, pana acum ori a gasit ori nu mai are nevoie =D> =D>
zLowCS
Membru, skill 0
Membru, skill 0
Posts: 27
Joined: 28 Jan 2017, 12:20
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 1 time
Contact:

26 Mar 2020, 18:39

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu" //edited by zLow

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_clcmd("say /comenzi", "CmdTransfer")
    register_clcmd("say_team /comenzi", "CmdTransfer")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /transfer pentr a vedea o lista cu comenzile pentru transfer !");
}

public CmdTransfer(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
Mihuu.FREE
Membru, skill 0
Membru, skill 0
Posts: 37
Joined: 11 Aug 2019, 15:07
Detinator Steam: Da
CS Status: Pe Inferno cu băieții
Detinator server CS: FREE.LALEAGANE.RO
SteamID: mitzaofficial
Fond eXtream: 0
Has thanked: 1 time
Been thanked: 1 time

26 Mar 2020, 18:41

zLowCS wrote:
26 Mar 2020, 18:39
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "plugin_comenzi"
#define VERSION "1.0"
#define AUTHOR "Rusu" //edited by zLow

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say /spec","spec");
    register_clcmd("say_team /spec","spec");
    register_clcmd("say /ct","ct");
    register_clcmd("say_team /ct","ct");
    register_clcmd("say /t","t")
    register_clcmd("say_team /t","t")
    register_clcmd("say /comenzi", "CmdTransfer")
    register_clcmd("say_team /comenzi", "CmdTransfer")
    register_concmd ( "amx_t", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Teroristi" );
    register_concmd ( "amx_ct", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Counter-Teroristi" );
    register_concmd ( "amx_spec", "swap_team", ADMIN_KICK, "<name> - mutare jucator la Spectatori" );

    set_task( 100.0, "mesaj", 0, "", 0, "b" );
}
 
public spec(id)
{
    cs_set_user_team(id,CS_TEAM_SPECTATOR);

    if(is_user_alive(id))
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public ct(id)
{
    cs_set_user_team(id,CS_TEAM_CT);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public t(id)
{
    cs_set_user_team(id,CS_TEAM_T);
    user_silentkill(id);

    return PLUGIN_CONTINUE;
}

public mesaj()
{
    client_print(0, print_chat, "Tasteaza in chat /transfer pentr a vedea o lista cu comenzile pentru transfer !");
}

public CmdTransfer(id)
{
    console_print( id, "---- Comenzi disponibile pe server ----" );
    console_print( id, "---------------------------------------" );
    console_print( id, "/spec - pe say & say_team si te transferi la spectatori" );
    console_print( id, "/ct - pe say & say_team si te transferi la CT" );
    console_print( id, "/t - pe say & say_team si te transferi la tero" );

    client_cmd( id, "toggleconsole" );

    return PLUGIN_HANDLED;
}


public swap_team ( id, level, cid ) {
    if( ! cmd_access ( id, level, cid, 2 ) )
        return PLUGIN_HANDLED;
    
    new szArg[ 10 ], target[ 32 ], szPlayerName[ 32 ], szAdminName[ 32 ];
    
    read_argv( 0, szArg, 9 );
    read_argv( 1, target, 31 );
    
    new player = cmd_target ( id, target, 11 );
    
    if( ! player ) 
        return PLUGIN_HANDLED;
    
    get_user_name ( player, szPlayerName, 31 );
    get_user_name ( id, szAdminName, 31 );
    
    switch ( szArg[ 4 ] ) {
        case 't': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 1 );
            show_activity ( id, szAdminName, "mutare %s la Teroristi.", szPlayerName );
        }
        
        
        case 'c': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 2 );
            show_activity ( id, szAdminName, "mutare %s la Counter-Teroristi.", szPlayerName );
        }
        
        case 's': 
        {
            user_silentkill ( player );
            cs_set_user_team ( player, 3 );
            show_activity ( id, szAdminName, "mutare %s la Spectatori.", szPlayerName );
        }
        
    }
    
    return PLUGIN_CONTINUE;
}
Mânca-ți-aș suflețelul, pe lângă că e un cod foarte foarte încărcat și comanda se poate face cu maxim 50 de linii, ai postat într-un topic din 2012.
Post Reply

Return to “Cereri”

  • Information