amx_spec, ct, t fara bug
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 .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- CasperYo
- Membru, skill 0
- Posts: 36
- Joined: 27 Feb 2013, 19:18
- Detinator Steam: Nu
- CS Status: Raspund mesajelor private mai greu
- Detinator server CS: OzzY.TitansCs.Ro
- Has thanked: 2 times
- Contact:
Am nevoie de acest plugin. Stiu ca se numeste amx_player_transfer. L-am gasit tot la voi pe forum insa nu e bun. Cand folosesc comanda amx_spec pe un admin il baga la joc urmatoarea runda. Se poate rezolva? Rog seriozitate :)
- snickers
- Membru, skill +3
- Posts: 1076
- Joined: 12 Feb 2010, 13:42
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Membru Club eXtreamCS (o luna)
Moderator ajutator
Nume anterior: MeRRy - Location: New York
- Has thanked: 29 times
- Been thanked: 148 times
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
- snickers
- Membru, skill +3
- Posts: 1076
- Joined: 12 Feb 2010, 13:42
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Membru Club eXtreamCS (o luna)
Moderator ajutator
Nume anterior: MeRRy - Location: New York
- Has thanked: 29 times
- Been thanked: 148 times
Incearca si cu acesta si vezi daca iti merge
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
Kana kana kana kana Jambe
- CasperYo
- Membru, skill 0
- Posts: 36
- Joined: 27 Feb 2013, 19:18
- Detinator Steam: Nu
- CS Status: Raspund mesajelor private mai greu
- Detinator server CS: OzzY.TitansCs.Ro
- Has thanked: 2 times
- Contact:
Code: Select all
/tmp/text0PTuH8.sma(7) : error 017: undefined symbol "Player"
/tmp/text0PTuH8.sma(7) : warning 215: expression has no effect
/tmp/text0PTuH8.sma(7) : error 017: undefined symbol "Pow"
/tmp/text0PTuH8.sma(7) : error 029: invalid expression, assumed zero
/tmp/text0PTuH8.sma(7) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.
- anaconda cs
- Membru, skill +3
- Posts: 1045
- Joined: 13 Nov 2012, 06:39
- Detinator Steam: Da
- Detinator server CS: Dr.InDungi.Ro
- SteamID: anaconda_indungi
- Location: Iasi
- Has thanked: 49 times
- Been thanked: 45 times
- Contact:
- CasperYo
- Membru, skill 0
- Posts: 36
- Joined: 27 Feb 2013, 19:18
- Detinator Steam: Nu
- CS Status: Raspund mesajelor private mai greu
- Detinator server CS: OzzY.TitansCs.Ro
- Has thanked: 2 times
- Contact:
Nu vreau acest plugin anaconda. Cand sunt mort si ma transfer ma invie. Tot ce vreau e un plugin in care se pot transfera si adminii la spectatori fara ca runda viitoare sa fie repusi in joc.
- cassuftw-
- Membru, skill +2
- Posts: 618
- Joined: 17 Sep 2011, 19:08
- Detinator Steam: Da
- Location: Târgu Jiu
- Has thanked: 69 times
- Been thanked: 40 times
Code: Select all
/* 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;
}
Steam profile: http://adf.ly/rr28k
- CasperYo
- Membru, skill 0
- Posts: 36
- Joined: 27 Feb 2013, 19:18
- Detinator Steam: Nu
- CS Status: Raspund mesajelor private mai greu
- Detinator server CS: OzzY.TitansCs.Ro
- Has thanked: 2 times
- Contact:
Nimeni nu stie rezolvarea problemei? Poate nu m-am facut inteles. Orice admin care se pune spectator cu amx_spec, urmatoarea runda e bagat automat in echipa in care a fost. Am folosit comanda amx_spec pe jucatori care nu au admin si la ei nu exista problema asta. Doar la cei ce au admin.
Mai jos aveti .sma . Acesta e pluginul folosit de mine. Poate asa gasitit rezolvarea.
Mai jos aveti .sma . Acesta e pluginul folosit de mine. Poate asa gasitit rezolvarea.
Code: Select all
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define CMDTARGET_OBEY_IMMUNITY (1<<0)
#define CMDTARGET_ALLOW_SELF (1<<1)
#define CMDTARGET_ONLY_ALIVE (1<<2)
#define CMDTARGET_NO_BOTS (1<<3)
new const bars[] = "/";
new command[][] =
{
"/t",
"/ct",
"/spec"
};
new Caccess[] =
{
ADMIN_KICK,
ADMIN_KICK,
ADMIN_KICK
};
public plugin_init()
{
register_plugin("Admin Player Transfer", "2.0", "x");
register_cvar("Admin_P_Transfer", "2.0.x", FCVAR_SERVER | FCVAR_SPONLY);
register_concmd("amx_t", "HighCS11", ADMIN_KICK, "<nume> - muti pe cineva la terro in viata");
register_concmd("admin_t", "HighCS11", ADMIN_KICK, "<nume> - muti pe cineva la terro in viata");
register_concmd("amx_ct", "HighCS12", ADMIN_KICK, "<nume> - muti pe cineva la ct in viata");
register_concmd("admin_ct", "HighCS12", ADMIN_KICK, "<nume> - muti pe cineva la ct in viata");
register_concmd("amx_spec", "HighCS13", ADMIN_KICK, "<nume> - muti pe cineva spectator");
register_concmd("admin_spec", "HighCS13", ADMIN_KICK, "<nume> - muti pe cineva spectator");
register_clcmd ("say", "hook_say");
return PLUGIN_CONTINUE;
}
public hook_say(index)
{
static arg[192], command2[192];
read_args(arg, charsmax (arg));
if (!arg[0])
return PLUGIN_CONTINUE;
remove_quotes(arg[0]);
for (new x; x < sizeof command; x++)
{
if(equal(arg, command[x], strlen(command[x])))
{
if(get_user_flags(index) & Caccess[x])
{
replace(arg, charsmax(arg), bars, "");
formatex(command2, charsmax(command2), "amx_%s", arg);
client_cmd(index, command2);
}
break;
}
}
return PLUGIN_CONTINUE;
}
public HighCS11(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED;
new unu[32]
read_argv(1, unu, 31);
new player = cmd_target(id, unu, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF);
if (!player)
return PLUGIN_HANDLED;
static name[32], Admin[32];
get_user_name(player, name, 31);
get_user_name(id, Admin, 31);
if ( cs_get_user_team( player ) == CS_TEAM_T )
{
console_print(id, "%s este deja TERRO", name )
return PLUGIN_HANDLED
}
new NumeEchipa[32];
NumeEchipa = cs_get_user_team(player) == CS_TEAM_T
cs_set_user_team(player, CS_TEAM_T);
NumeEchipa = "Terrorists";
user_silentkill(player);
client_print(0, print_chat, "ADMIN: %s il muta pe %s la echipa TERRO", Admin, name);
set_task(0.3, "RespawnPlayer", id + 123491);
return PLUGIN_HANDLED;
}
public HighCS12(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED;
new unu[32]
read_argv(1, unu, 31);
new player = cmd_target(id, unu, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF);
if (!player)
return PLUGIN_HANDLED;
static name[32], Admin[32];
get_user_name(player, name, 31);
get_user_name(id, Admin, 31);
if ( cs_get_user_team( player ) == CS_TEAM_CT )
{
console_print(id, "%s este deja CT", name )
return PLUGIN_HANDLED
}
new NumeEchipa[32];
NumeEchipa = cs_get_user_team(player) == CS_TEAM_CT
cs_set_user_team(player, CS_TEAM_CT);
NumeEchipa = "Counter-Terrorists";
user_silentkill(player);
client_print(0, print_chat, "ADMIN: %s il muta pe %s la echipa CT", Admin, name);
return PLUGIN_HANDLED;
}
public HighCS13(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED;
new unu[32]
read_argv(1, unu, 31);
new player = cmd_target(id, unu, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF);
if (!player)
return PLUGIN_HANDLED;
static name[32], Admin[32];
get_user_name(player, name, 31);
get_user_name(id, Admin, 31);
if ( cs_get_user_team( player ) == CS_TEAM_SPECTATOR )
{
console_print(id, "%s este deja SPECTATOR", name )
return PLUGIN_HANDLED
}
new NumeEchipa[32];
NumeEchipa = cs_get_user_team(player) == CS_TEAM_SPECTATOR
cs_set_user_team(player, CS_TEAM_SPECTATOR);
NumeEchipa = "Spectator";
user_silentkill(player);
client_print(0, print_chat, "ADMIN: %s il pune pe %s SPECTATOR", Admin, name);
return PLUGIN_HANDLED;
}
public RespawnPlayer(id)
{
id -= 123491;
if( is_user_alive( id )) return;
set_pev( id, pev_deadflag, DEAD_NO );
dllfunc( DLLFunc_Spawn, id );
set_pev( id, pev_iuser1, 0 );
}
stock is_user_admin(id)
{
return (get_user_flags(id) > 0 && !(get_user_flags(id) & ADMIN_USER));
}
stock cmd_access(id, level, cid, num)
{
new has_access = 0;
if(id == (is_dedicated_server() ? 0 : 1))
{
has_access = 1;
}
else if(level == ADMIN_ADMIN)
{
if (is_user_admin(id))
{
has_access = 1;
}
}
else if(get_user_flags(id) & level)
{
has_access = 1;
}
else if(level == ADMIN_ALL)
{
has_access = 1;
}
if(has_access == 0)
{
client_print(id, print_chat, "Nu ai acces la aceasta comanda!");
console_print(id, "Nu ai acces la aceasta comanda!");
return 0;
}
if(read_argc() < num)
{
new hcmd[32], hinfo[128], hflag;
get_concmd(cid, hcmd, 31, hflag, hinfo, 127, level);
client_print(id, print_chat, "Foloseste comanda: /transfer <nume> <echipa>");
console_print(id, "Foloseste comanda: %s %s", hcmd, hinfo);
return 0;
}
return PLUGIN_HANDLED;
}
stock access(id, level)
{
if(level == ADMIN_ADMIN)
{
return is_user_admin(id);
}
return (get_user_flags(id) & level);
}
stock cmd_target(id, const arg[], flags = CMDTARGET_OBEY_IMMUNITY)
{
new player = find_player("bl", arg);
if(player)
{
if(player != find_player("blj", arg))
{
client_print(id, print_chat, "Sunt mai multi jucatori care se potrivesc la nume cu ce ai scris tu!");
console_print(id, "Sunt mai multi jucatori care se potrivesc la nume cu ce ai scris tu!");
return 0;
}
}
else if((player = find_player("c", arg)) == 0 && arg[0] == '#' && arg[1])
{
player = find_player("k", str_to_num(arg[1]));
}
if(!player)
{
client_print(id, print_chat, "Jucatorul nu a fost gasit!");
client_print(id, print_chat, "Verifica daca ai scris bine sau daca jucatorul mai este pe server, si incearca iar!");
console_print(id, "Jucatorul nu a fost gasit!");
console_print(id, "Verifica daca ai scris bine sau daca jucatorul mai este pe server, si incearca iar!");
return 0;
}
if (flags & CMDTARGET_OBEY_IMMUNITY)
{
if((get_user_flags(player) & ADMIN_IMMUNITY) && ((flags & CMDTARGET_ALLOW_SELF) ? (id != player) : true))
{
new imname[32];
get_user_name(player, imname, 31);
client_print(id, print_chat, "Jucatorul %s are imunitate!", imname);
client_print(id, print_chat, "Poate este ADMIN, cauta comanda de setare imunitate si seteaz-o OFF , daca ai acces!");
console_print(id, "Jucatorul %s are imunitate!", imname);
console_print(id, "Poate este ADMIN, cauta comanda de setare imunitate si seteaz-o OFF , daca ai acces!");
return 0;
}
}
if (flags & 4)
{
if(!is_user_alive(player))
{
new imname[32];
get_user_name(player, imname, 31);
client_print(id, print_chat, "Jucatorul %s este mort!", imname);
client_print(id, print_chat, "Asteapta sa inceapa urmatoarea runda!");
console_print(id, "Jucatorul %s este mort!", imname);
console_print(id, "Asteapta sa inceapa urmatoarea runda!");
return 0;
}
}
if (flags & 8)
{
if(is_user_bot(player))
{
new imname[32];
get_user_name(player, imname, 31);
client_print(id, print_chat, "Jucatorul %s nu este real, este bot , ce inseamna ca nu poti executa nici o comanda pe el!", imname);
console_print(id, "Jucatorul %s nu este real, este bot , ce inseamna ca nu poti executa nici o comanda pe el!", imname);
return 0;
}
}
return player;
}