Cerere plugin amx_spec/ct/t [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
Spank
Membru, skill +2
Membru, skill +2
Posts: 653
Joined: 14 Apr 2010, 13:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 3 times

01 Dec 2013, 16:14

Salut, doresc si eu pluginul amx_transfer dar fara buguri!
ROG MODERATORII SA NU ICHIDA TOPICUL CU MOTIVUL "au mai fost asemenea subiecte" pentru ca am cauta pe tot site-ul si nu am gasiti un plugin bun.
User avatar
alynut
eXtream Mod
eXtream Mod
Posts: 6942
Joined: 02 Jul 2012, 05:31
Detinator Steam: Da
CS Status: In concediu, activez mai rar .
SteamID: alynut991
Reputatie: Fost Administrator
Fost Intermediar
Location: Bucuresti
Has thanked: 159 times
Been thanked: 414 times
Contact:

01 Dec 2013, 16:21

Testat de mine, l-am avut pe serverul meu .
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < amxmisc >
#include < cstrike >

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Ciprian"

public plugin_init ( ) {
    register_plugin ( PLUGIN, VERSION, AUTHOR );
    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" );
}

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;
}
User avatar
roberteeel
Membru eXtream
Membru eXtream
Posts: 4440
Joined: 05 Sep 2012, 10:39
Detinator Steam: Nu
Reputatie: Nick anterior: QAZW, Robert.ultrasFarul, CT 18 ROS
Restrictie schimbare nume
Fost moderator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 312 times
Been thanked: 357 times

01 Dec 2013, 16:38

User avatar
Spank
Membru, skill +2
Membru, skill +2
Posts: 653
Joined: 14 Apr 2010, 13:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 3 times

01 Dec 2013, 20:36

Multumesc, puteti inchide :D
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests