Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[REQ] Fix Bug Plugin


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
hi, I couldn't fix it
Can anyone do that?

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <sqlx>
#include <fun>
#include <xs>
#include <cromchat>

#define PLUGIN "CMD_new"
#define VERSION "4.0"
#define AUTHOR "AlferD"
#define ADMINLEVEL ADMIN_KICK
#define ADMINLEVELFULL ADMIN_IMMUNITY
#define ADMINLEVELB ADMIN_BAN
#define ADMINLEVELM ADMIN_MAP
#define ADMINLEVELP ADMIN_PASSWORD

new pAdminPassword;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_dictionary("Match_Text.txt");
    
         
register_concmd("_Password""mmPass");
    
register_concmd("_Ct_Name""mmCt_Name");
    
register_concmd("_Trr_Name""mmTrr_Name");
    
register_concmd("_Admin_Password""mmAdmin_Password");
    
register_concmd("_Add_Admin""mmAdd_Admin");
    
    
pAdminPassword register_cvar("adminpassword""");

     
//----------_Slash Command ( Say )
    
register_clcmd("say /trrname","Trr_Name",ADMINLEVEL);
    
register_clcmd("say /ctname""Ct_Name",ADMINLEVEL);
    
register_clcmd("say /addadmin""Admin_Password",ADMINLEVELFULL);
    
register_clcmd("say /b0","b0",ADMINLEVEL);
    
register_clcmd("say /b1""b1",ADMINLEVEL);
    
register_clcmd("say /f0","f0",ADMINLEVEL);
    
register_clcmd("say /f1""f1",ADMINLEVEL);
    
register_clcmd("say /r","r",ADMINLEVEL);
    
register_clcmd("say /r1""r1",ADMINLEVEL);
    
register_clcmd("say /r2""r2",ADMINLEVEL);
         
register_clcmd("say /a","amxmodmenu",ADMINLEVEL);
         
register_clcmd("say /am","adminsmanager",ADMINLEVELFULL);
         
register_clcmd("say /sxe","sxe_menu",ADMINLEVEL);
         
register_clcmd("say /bm","ban_menu",ADMINLEVELB);
         
register_clcmd("say /km","kick_menu",ADMINLEVEL);
         
register_clcmd("say /ubm","unban_menu",ADMINLEVELB);
         
register_clcmd("say /map","map_menu",ADMINLEVELM);
         
register_clcmd("say /votemap","votemap",ADMINLEVELM);
         
register_clcmd("say /all1","all1",ADMINLEVEL);
         
register_clcmd("say /all0","all0",ADMINLEVEL);
         
register_clcmd("say /live","live",ADMINLEVEL);
         
register_clcmd("say /dust2","de_dust2",ADMINLEVELM);
         
register_clcmd("say /inferno","de_inferno",ADMINLEVELM);
         
register_clcmd("say /nuke","de_nuke",ADMINLEVELM);
         
register_clcmd("say /tuscan","de_tuscan",ADMINLEVELM);
         
register_clcmd("say /mirage","de_mirage",ADMINLEVELM);
         
register_clcmd("say /train","de_train",ADMINLEVELM);
         
register_clcmd("say /mix","mix",ADMINLEVEL);
         
register_clcmd("say /warm","warm",ADMINLEVEL);
         
register_clcmd("say /pub","pub",ADMINLEVEL);
         
register_clcmd("say /p","puase",ADMINLEVEL);
         
register_clcmd("say /g","gag",ADMINLEVEL);
         
register_clcmd("say /t1","on_talk",ADMINLEVEL);
         
register_clcmd("say /t0","off_talk",ADMINLEVEL);
         
register_clcmd("say /v1","on_voice",ADMINLEVEL);
         
register_clcmd("say /v0","off_voice",ADMINLEVEL);
         
register_clcmd("say /s","swap",ADMINLEVEL);
         
register_clcmd("say /pw","pw",ADMINLEVELP);
    
register_clcmd("say /mpw","mpw",ADMINLEVELP);
         
register_clcmd("say /nopw","no_pw",ADMINLEVELP);
    
register_clcmd("say /pwall","pw_all",ADMINLEVELP);
         
register_clcmd("say /team","team",ADMINLEVEL);
         
register_clcmd("say /say0","say0",ADMINLEVEL);
         
register_clcmd("say /say1","say1",ADMINLEVEL);
         
register_clcmd("say /name0","name0",ADMINLEVEL);
         
register_clcmd("say /name1","name1",ADMINLEVEL);
         
register_clcmd("say /j1","join1",ADMINLEVEL);
         
register_clcmd("say /j0","join0",ADMINLEVEL);
         
register_clcmd("say /spec","spec",ADMINLEVEL);
         
register_clcmd("say /kspec","kick_spec",ADMINLEVEL);
    
register_clcmd("say /knf","knf",ADMINLEVEL);
    
register_clcmd("say /knife","knf2",ADMINLEVEL);
    
register_clcmd("say /knfr","knfr",ADMINLEVEL);
    
register_clcmd("say /rev","rev",ADMINLEVEL);
    
register_clcmd("say /ahelp","motd",ADMINLEVEL);
    
    
//----------_Slash Command ( Say )
    
register_clcmd("say_team /trrname","Trr_Name",ADMINLEVEL);
    
register_clcmd("say_team /ctname""Ct_Name",ADMINLEVEL);
    
register_clcmd("say_team /addadmin""Admin_Password",ADMINLEVELFULL);
    
register_clcmd("say_team /b0","b0",ADMINLEVEL);
    
register_clcmd("say_team /b1","b1",ADMINLEVEL);
    
register_clcmd("say_team /f0","f0",ADMINLEVEL);
    
register_clcmd("say_team /f1","f1",ADMINLEVEL);
    
register_clcmd("say_team /r","r",ADMINLEVEL);
    
register_clcmd("say_team /r1","r1",ADMINLEVEL);
    
register_clcmd("say_team /r2","r2",ADMINLEVEL);
         
register_clcmd("say_team /a","amxmodmenu",ADMINLEVEL);
         
register_clcmd("say_team /am","adminsmanager",ADMINLEVELFULL);
         
register_clcmd("say_team /sxe","sxe_menu",ADMINLEVEL);
         
register_clcmd("say_team /bm","ban_menu",ADMINLEVELB);
         
register_clcmd("say_team /km","kick_menu",ADMINLEVEL);
         
register_clcmd("say_team /ubm","unban_menu",ADMINLEVELB);
         
register_clcmd("say_team /map","map_menu",ADMINLEVELM);
         
register_clcmd("say_team /votemap","votemap",ADMINLEVELM);
         
register_clcmd("say_team /all1","all1",ADMINLEVEL);
         
register_clcmd("say_team /all0","all0",ADMINLEVEL);
         
register_clcmd("say_team /live","live",ADMINLEVEL);
         
register_clcmd("say_team /dust2","de_dust2",ADMINLEVELM);
         
register_clcmd("say_team /inferno","de_inferno",ADMINLEVELM);
         
register_clcmd("say_team /nuke","de_nuke",ADMINLEVELM);
         
register_clcmd("say_team /tuscan","de_tuscan",ADMINLEVELM);
         
register_clcmd("say_team /mirage","de_mirage",ADMINLEVELM);
         
register_clcmd("say_team /train","de_train",ADMINLEVELM);
         
register_clcmd("say_team /mix","mix",ADMINLEVEL);
         
register_clcmd("say_team /warm","warm",ADMINLEVEL);
         
register_clcmd("say_team /pub","pub",ADMINLEVEL);
         
register_clcmd("say_team /p","puase",ADMINLEVEL);
    
register_clcmd("say_team /g","gag",ADMINLEVEL);
         
register_clcmd("say_team /t1","on_talk",ADMINLEVEL);
         
register_clcmd("say_team /t0","off_talk",ADMINLEVEL);
         
register_clcmd("say_team /v1","on_voice",ADMINLEVEL);
         
register_clcmd("say_team /v0","off_voice",ADMINLEVEL);
         
register_clcmd("say_team /s","swap",ADMINLEVEL);
         
register_clcmd("say_team /pw","pw",ADMINLEVELP);
    
register_clcmd("say_team /mpw","mpw",ADMINLEVELP);
         
register_clcmd("say_team /nopw","no_pw",ADMINLEVELP);
    
register_clcmd("say_team /pwall","pw_all",ADMINLEVELP);
         
register_clcmd("say_team /team","team",ADMINLEVEL);
         
register_clcmd("say_team /say0","say0",ADMINLEVEL);
         
register_clcmd("say_team /say1","say1",ADMINLEVEL);
         
register_clcmd("say_team /name0","name0",ADMINLEVEL);
         
register_clcmd("say_team /name1","name1",ADMINLEVEL);
         
register_clcmd("say_team /j1","join1",ADMINLEVEL);
         
register_clcmd("say_team /j0","join0",ADMINLEVEL);
         
register_clcmd("say_team /spec","spec",ADMINLEVEL);
         
register_clcmd("say_team /kspec","kick_spec",ADMINLEVEL);
    
register_clcmd("say_team /knf","knf",ADMINLEVEL);
    
register_clcmd("say_team /knife","knf2",ADMINLEVEL);
    
register_clcmd("say_team /knfr","knfr",ADMINLEVEL);
    
register_clcmd("say_team /rev","rev",ADMINLEVEL);
    
register_clcmd("say_team /ahelp","motd",ADMINLEVEL);
}

public 
b1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("abh_on 1")
}
}

public 
b0(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
    
server_cmd("abh_on 0")
}
}

public 
f1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {    
    
server_cmd("mp_friendlyfire 1")
}
}

public 
f0(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("mp_friendlyfire 0")
}
}

public 
r(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {    
    
server_cmd("sv_restart 1");
}
}

public 
r1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("sv_restart 1");
}
}

public 
r2(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("sv_restart 2");
}
}

public 
amxmodmenu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amxmodmenu");
}
}

public 
adminsmanager(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"adminsmanager");
}
}

public 
sxe_menu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_sxe_menu");
}
}

public 
ban_menu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_banmenu");
}
}

public 
kick_menu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_kickmenu");
}
}

public 
unban_menu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_unbanmenu");
}
}

public 
map_menu(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_mapmenu");
}
}

public 
votemap(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_votemapmenu");
}
}

public 
all1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("sv_allowdownload 1");
         
server_cmd("sv_allowupload 1");
         
server_cmd("sv_voiceenable 1");
         
server_cmd("sv_alltalk 1");
         
server_cmd("sv_nosay 0");
         
server_cmd("sv_chooseteam 1");
         
server_cmd("tc_enabled 0");
    
server_cmd("tjm_switch_team 1");
    
server_cmd("nnc_max_changes 100");
}
}

public 
all0(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("sv_allowdownload 0");
         
server_cmd("sv_allowupload 0");
         
server_cmd("sv_voiceenable 1");
         
server_cmd("sv_alltalk 0");
         
server_cmd("sv_nosay 1");
         
server_cmd("sv_chooseteam 0");
         
server_cmd("nnc_max_changes 0");
    
server_cmd("tc_enabled 1");
    
server_cmd("tjm_switch_team 0");
}
}

public 
live(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("sv_restart 1");
    
set_task(1.0"live1")
}
}
public 
live1(id)
{
    
server_cmd("sv_restart 1");
    
set_task(1.0"live2");
}
public 
live2(id)
{
    
server_cmd("sv_restart 1");
    
set_task(1.0"live3");
}
public 
live3(id)
{
    
server_cmd("amx_matchstart");
    
print_color(0"%L %L",id"KG",id"LIVEE")
    
print_color(0"%L %L",id"KG",id"LIVEEE")
    
print_color(0"%L %L",id"KG",id"LIVEE")
    
print_color(0"%L %L",id"KG",id"LIVEEE")
    
set_task(1.0"hud");
}

public 
hud(id)
{
    
set_hudmessage(25500, -1.00.3106.05.0)
    
show_hudmessage(0"[The Match Started]")
    
client_cmd(id,"hudlive");
}

public 
dust2(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("amx_map de_dust2");
    
print_color(id"%L %L",id"KG",id"DUST2");
}
}


public 
inferno(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("amx_map de_inferno");
    
print_color(id"%L %L",id"KG",id"INFERNO");
}
}

public 
dnuke(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {    
    
server_cmd("amx_map de_nuke");
    
print_color(id"%L %L",id"KG",id"NUKE");
}
}

public 
tuscan(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("amx_map de_tuscan");
    
print_color(id"%L %L",id"KG",id"TUSCAN");
}
}

public 
mirage(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("amx_map de_mirage");
    
print_color(id"%L %L",id"KG",id"MIRAGE");
}
}

public 
train(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("amx_map de_train");
    
print_color(id"%L %L",id"KG",id"TRAIN");
}
}

public 
warm(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("mp_autokick 0");
    
server_cmd("mp_fadetoblack 0");
    
server_cmd("mp_autocrosshair 0");
    
server_cmd("mp_autoteambalance 0");
    
server_cmd("mp_buytime 0.25");
    
server_cmd("mp_consistency 1");
    
server_cmd("mp_c4timer 35");
    
server_cmd("mp_flashlight 1");
    
server_cmd("mp_forcechasecam 2");
    
server_cmd("mp_forcecamera 2");
    
server_cmd("mp_footsteps 1");
    
server_cmd("mp_freezetime 0");
    
server_cmd("mp_friendlyfire 0");
    
server_cmd("mp_limitteams 0");
    
server_cmd("mp_maxrounds 0");
    
server_cmd("mp_roundtime 1.45");
    
server_cmd("mp_timelimit 0");
    
server_cmd("mp_tkpunish 0");
    
server_cmd("mp_friendly_grenade_damage 0");
    
server_cmd("mp_startmoney 16000");
    
server_cmd("sv_allowdownload 1");
    
server_cmd("sv_allowupload 1");
    
server_cmd("sv_voiceenable 1");
    
server_cmd("sv_alltalk 1");
    
server_cmd("sv_proxies 1");
    
server_cmd("sv_cheats 0");
    
server_cmd("sv_gravity 800");
    
server_cmd("allow_spectators 1");
    
server_cmd("sys_ticrate 10000");
    
server_cmd("sv_timeout 65");
    
server_cmd("sv_aim 0");
    
server_cmd("statsme_off");
    
server_cmd("sv_password ^"^"");
    
server_cmd("amx_matchstop");
    
server_cmd("sv_restart 1");
    
server_cmd("amx_status 1");
    
server_cmd("amx_status2 1");
    
server_cmd("exec hostname_warm.cfg")
    
print_color(0"%L %L",id"KG",id"WARM1");
}
}

public 
pub(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("mp_roundtime 2.500000");
    
server_cmd("mp_c4timer 35");
    
server_cmd("mp_buytime 0.250000");
    
server_cmd("mp_freezetime 4");
    
server_cmd("mp_startmoney 800");
    
server_cmd("sv_alltalk 0");
    
server_cmd("sv_voiceenable 0");
    
server_cmd("sv_restart 1");
    
server_cmd("amx_status 1");
    
server_cmd("amx_status2 1");
    
print_color(0"%L %L",id"KG",id"PUBLIC1")
}
}

public 
mix(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
server_cmd("mp_autokick 0")
    
server_cmd("mp_autocrosshair 0")
    
server_cmd("mp_autoteambalance 0")
    
server_cmd("mp_buytime 0.25")
    
server_cmd("mp_consistency 1")
    
server_cmd("mp_c4timer 35")
    
server_cmd("mp_fadetoblack 0")
    
server_cmd("mp_flashlight 1")
    
server_cmd("mp_forcechasecam 2")
    
server_cmd("mp_forcecamera 2")
    
server_cmd("mp_footsteps 1")
    
server_cmd("mp_freezetime 15")
    
server_cmd("mp_friendlyfire 1")
    
server_cmd("mp_hostagepenalty 0")
    
server_cmd("mp_limitteams 10")
    
server_cmd("mp_logecho 1")
    
server_cmd("mp_logdetail 3")
    
server_cmd("mp_logfile 1")
    
server_cmd("mp_logmessages 1")
    
server_cmd("mp_maxrounds 0")
    
server_cmd("mp_playerid 1")
    
server_cmd("mp_roundtime 1.75")
    
server_cmd("mp_timelimit 0")
    
server_cmd("mp_tkpunish 0")
    
server_cmd("mp_winlimit 0")
    
server_cmd("sv_aim 0")
    
server_cmd("sv_airaccelerate 10")
    
server_cmd("sv_airmove 1")
    
server_cmd("sv_allowdownload 0")
    
server_cmd("sv_allowupload 0")
    
server_cmd("sv_alltalk 0")
    
server_cmd("sv_cheats 0")
    
server_cmd("sv_clienttrace 1")
    
server_cmd("sv_clipmode 0")
    
server_cmd("sv_friction 4")
    
server_cmd("sv_gravity 800")
    
server_cmd("sv_lan_rate 25000")
    
server_cmd("sv_maxrate 25000")
    
server_cmd("sv_maxspeed 320")
    
server_cmd("sv_maxunlag 0.5")
    
server_cmd("sv_maxupdaterate 101")
    
server_cmd("sv_minupdaterate 20")
    
server_cmd("sv_minrate 0")
    
server_cmd("sv_proxies 1")
    
server_cmd("sv_send_logos 1")
    
server_cmd("sv_send_resources 1")
    
server_cmd("sv_stepsize 18")
    
server_cmd("sv_stopspeed 75")
    
server_cmd("sv_unlag 1")
    
server_cmd("sv_voiceenable 1")
    
server_cmd("sv_unlagsamples 1")
    
server_cmd("sv_unlagpush 0")
    
server_cmd("sys_ticrate 10000")
    
server_cmd("allow_spectators 1")
    
server_cmd("decalfrequency 60")
    
server_cmd("edgefriction 2")
    
server_cmd("host_framerate 0")
    
server_cmd("log on pausable 0")
    
server_cmd("mp_startmoney 800")
    
server_cmd("mp_friendlyfire 1")
    
server_cmd("amx_status 0");
    
server_cmd("amx_status2 0");
    
server_cmd("exec hostname_mix.cfg")
    
client_cmd(id,"amx_votemapmenu");
    
print_color(0"%L %L",id"KG",id"MIX1")
}
}

public 
puase(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {    
         
client_cmd(id,"amx_pause");
}
}

public 
gag(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
client_cmd(id,"amx_gagmenu");
}
}

public 
talk1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_alltalk 1");
}
}

public 
talk2(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_alltalk 2");
}
}

public 
talk3(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_alltalk 3");
}
}

public 
on_voice(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_voiceenable 1");
}
}

public 
off_voice(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_voiceenable 0");
}
}

public 
swap(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
    new 
players[32], num
    get_players
(playersnum)
    new 
player
    
for(new 0numi++)
    {
    
player players[i]
    if(
is_user_connected(player))
    {
    switch( 
cs_get_user_teamplayer ) )
    {
    case 
CS_TEAM_Tcs_set_user_teamplayerCS_TEAM_CT )
    case 
CS_TEAM_CTcs_set_user_teamplayerCS_TEAM_T )
}
}
}
         
server_cmd("sv_restart 1");
}
}

public 
mpw(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"messagemode _Password")
}
}

public 
mmPass(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
szTemp[64
         
read_args(szTempcharsmax(szTemp))
         
server_cmd("sv_password %s",szTemp);
}
}

public 
pw(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_password 88")
    
print_color(id"%L",id"PWID")
}
}

public 
no_pw(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("sv_password ^"^"");
    
print_color(0"%L",id"NOPW1");
}
}

public 
pw_all(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
cvar[16]
    
get_cvar_string("sv_password"cvar15)
    
print_color(0"%L",id"PWALL1",cvar)
}
}

public 
Trr_Name(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
client_cmd(id,"messagemode _Trr_Name")
}
}

public 
mmTrr_Name(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
szTemp[64
         
read_args(szTempcharsmax(szTemp));
         
server_cmd("amx_trrname %s",szTemp);
    }
}

public 
Admin_Password(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
client_cmd(id,"messagemode _Admin_Password")
}
}

public 
mmAdmin_Password(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
szTemp[64]
         
read_args(szTempcharsmax(szTemp));    
         
server_cmd("adminpassword %s",szTemp);
    
set_task(1.0"Add_Admin")
}
}

public 
Add_Admin(id)
{
         
client_cmd(id,"messagemode _Add_Admin");
}

public 
mmAdd_Admin(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
szTemp[64]
    new 
szAdminPassword[32]
         
get_pcvar_string(pAdminPasswordszAdminPasswordcharsmax(szAdminPassword));
         
read_args(szTempcharsmax(szTemp))
         
server_cmd("amx_addadmin %s cdefghijklu %s",szTemp,szAdminPassword);
}
}

public 
Ct_Name(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
client_cmd(id,"messagemode _Ct_Name")
     }
}

public 
mmCt_Name(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    new 
szTemp[64
         
read_args(szTempcharsmax(szTemp))
    
         
server_cmd("amx_ctname %s",szTemp);
    }
}

public 
team(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
client_cmd(id,"amx_teammenu")
}
}

public 
say0(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("tc_enabled 1")
}
}

public 
say1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("tc_enabled 0")
}
}

public 
name0(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("amx_noname 1")
}
}

public 
name1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("amx_noname 0")
}
}

public 
join1(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         
server_cmd("tjm_switch_team 1")
}
}

public 
join0(idlevelcid)
{
        if(
cmd_access(id,levelcid1))
    {
         
server_cmd("tjm_switch_team 0")
}
}

public 
spec(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
         {    
         new 
players[32], pnumtempid
         get_players
(playerspnum)

         for( new 
ii<pnumi++ ) 
         {
         
tempid players[i]
         
user_kill(tempid)
         
cs_set_user_team(tempidCS_TEAM_SPECTATOR)
         }
       }
}
}

public 
kick_spec(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {    
         new 
Players[32], iCount;
         
get_players(PlayersiCount"e""SPECTATOR");
         if (
iCount 0)
         {
         for (new 
0iCountk++)
         {
    
server_cmd("kick #%d"get_user_userid(Players[k]));
    }
    
server_exec();
    }
}
}

public 
knf(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_knife");
}
}

public 
knf2(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_knife");
}
}

public 
knfr(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_knife_restart");
}
}

public 
rev(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
client_cmd(id,"amx_revive @ 100 0");
}
}

public 
motd(idlevelcid)
{
    if(
cmd_access(id,levelcid1))
    {
    
show_motd(id"motd.txt""Tittle");
}
}

stock print_color(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);

    
replace_all(msg190"!g""^4");
    
replace_all(msg190"!y""^1");
    
replace_all(msg190"!t""^3");   

    if(
idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

    return 
PLUGIN_HANDLED;


Code:

//// cmd.sma
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<28> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<29> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<47> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<75> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<76> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<77> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<78> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<87> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<104> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<125> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<126> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<132> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<133> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<134> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<135> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<144> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<277> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<283> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<293> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<299> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<606> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<623> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<633> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<642> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<669> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<687> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<689> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<704> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<723> : warning 217: loose indentation
// C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<815> : warning 217: loose indentation
// Header size              2204 bytes
// Code size                26492 bytes
// Data size                23108 bytes
// Stack/heap size          16384 bytes; estimated max. usage=781 cells <3124 bytes>
// Total requirements      68188 bytes
//
// 30 Warnings.
// Done.
//
// Compilation Time: 1 sec
//-------------------------------------------------

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...