PHP- Kodu:
/*-------------------------- Maç Başlatma (335) --------------------------*/
public cmdVale(id, level, cid) {
if( !cmd_access( id, level, cid, 1 ) )
return PLUGIN_HANDLED;
pasarse = true
remove_task(TASK_LISTA)
remove_task(TASK_CHE)
set_pcvar_num (g_READY, 0)
EstoyReady[id] = false
ReadyCont = 0
set_task(0.1,"cmdNuevo")
new pass[32]
get_cvar_string("sv_password",pass,sizeof(pass) - 1)
if(!mitad) {
tt_win = 0
ct_win = 0
total = 0
totalCT = 0
totalTT = 0
end = false
set_task(0.1, "print", TASK_PRINT)
}
else
tt_win = 0
ct_win = 0
ready2 = false
set_task(0.1, "print", TASK_PRINT)
set_task (0.1,"ayarlarb")
return PLUGIN_HANDLED
}
public cmdNuevo (id, level, cid) {
if( !cmd_access( id, level, cid, 1 ) )
return PLUGIN_HANDLED;
tt_win = 0
ct_win = 0
total = 0
totalCT = 0
totalTT = 0
globalCT = 0
globalTT = 0
end = false
mitad = false
EstoyReady[id] = false
ReadyCont = 0
set_pcvar_num (g_READY, 0)
return PLUGIN_HANDLED;
}
public print() {
set_task (1.0,"cinco")
set_task (2.0,"cuatro")
set_task (3.0,"tres")
set_task (4.0,"dos")
set_task (5.0,"uno")
set_task (6.0,"valeria")
set_task(7.0, "RR1")
set_task(10.0, "RR2")
set_task(13.0, "RR3")
set_task(18.0, "MacAyariYap")
remove_task(TASK_PRINT)
set_task(19.0, "msg", TASK_MSG)
set_task(20.0, "DemoCek")
}
public cinco() {
if (get_pcvar_num(g_soniditos) == 1 ) {
client_cmd(0, "spk ^"fvox/five^"")
}
set_hudmessage(255, 255, 255, -1.0, 0.18, 1, 0.0, 2.0, 0.0, 0.0, 3)
show_hudmessage(0, "Mac Ayarlari Yukleniyor.^nMacin Baslamasina [ 5 ] Saniye Var.")
}
public cuatro() {
if (get_pcvar_num(g_soniditos) == 1 ) {
client_cmd(0, "spk ^"fvox/four^"")
}
set_hudmessage(255, 255, 255, -1.0, 0.18, 1, 0.0, 2.0, 0.0, 0.0, 3)
show_hudmessage(0, "Mac Ayarlari Yukleniyor.^nMacin Baslamasina [ 4 ] Saniye Var.")
new pass[32]
get_cvar_string("sv_password",pass,sizeof(pass) - 1)
chat_color(0,"!g[%s] !yMac Baslatma Komutu Uygulandi.",szStag)
}
public tres() {
if (get_pcvar_num(g_soniditos) == 1 ) {
client_cmd(0, "spk ^"fvox/three^"")
}
set_hudmessage(255, 255, 255, -1.0, 0.18, 1, 0.0, 2.0, 0.0, 0.0, 3)
show_hudmessage(0, "Mac Ayarlari Yukleniyor.^nMacin Baslamasina [ 3 ] Saniye Var.")
}
public dos() {
if (get_pcvar_num(g_soniditos) == 1 ) {
client_cmd(0, "spk ^"fvox/two^"")
}
set_hudmessage(255, 255, 255, -1.0, 0.18, 1, 0.0, 2.0, 0.0, 0.0, 3)
show_hudmessage(0, "Mac Ayarlari Yukleniyor.^nMacin Baslamasina [ 2 ] Saniye Var.")
}
public uno() {
if (get_pcvar_num(g_soniditos) == 1 ) {
client_cmd(0, "spk ^"fvox/one^"")
}
set_hudmessage(255, 255, 255, -1.0, 0.18, 1, 0.0, 2.0, 0.0, 0.0, 3)
show_hudmessage(0, "Mac Ayarlari Yukleniyor.^nMacin Baslamasina [ 1 ] Saniye Var.")
}
public valeria() {
}
public RR1() {
server_cmd("sv_restart 2")
}
public RR2() {
server_cmd("sv_restart 2")
}
public RR3() {
server_cmd("sv_restart 5")
}
public RR9() {
server_cmd("sv_restart 1")
}
public MacAyariYap() {
set_cvar_string("mp_autokick", "0");
set_cvar_string("mp_freezetime", "8");
set_cvar_string("mp_autoteambalance", "0");
set_cvar_string("mp_limitteams", "0");
set_cvar_string("mp_friendlyfire", "1");
set_cvar_string("sv_alltalk", "0");
set_cvar_string("mp_startmoney", "800");
set_cvar_string("mp_timelimit", "0");
set_cvar_string("mp_forcecamera", "2");
set_cvar_string("mp_forcechasecam", "2");
set_cvar_string("mp_flashlight", "1");
set_cvar_string("mp_tkpunish", "0");
set_cvar_string("mp_c4timer", "35");
set_cvar_string("mp_roundtime", "1.75");
set_cvar_string("mp_footsteps", "1");
set_cvar_string("mp_buytime", "0.25");
set_cvar_string("mp_maxrounds", "0");
set_cvar_string("allow_spectators", "1");
set_cvar_string("mp_logmessages", "1");
set_cvar_string("mt_enable", "1");
set_cvar_string("aim_prac", "0");
set_cvar_string("mt_teamlock", "1");
set_cvar_string("mt_duck", "1");
if(get_pcvar_num(g_SAY) == 0 && set_pcvar_num(g_SAY,1)) {
}
for( new i = 0; i <= g_iMaxPlayers; i++ )
{
if( is_user_connected( i ) && !is_user_bot( i ) )
client_cmd( i, "" );
}
client_cmd(0,"spk ^"events/task_complete^"");
}
public msg(id) {
if(!mitad){
new pw;
pw = random_num(1000,9999)
set_cvar_num("sv_password",pw)
new pass[32]
get_cvar_string("sv_password",pass,sizeof(pass) - 1)
client_cmd(0, "password ^"%s^"", pass);
get_cvar_string("sv_password",pass,sizeof(pass) - 1)
set_hudmessage(255, 255, 255, -1.0, 0.18, 0, 6.0, 7.0)
show_hudmessage(0, "Mac Basladi. Basarilar. Password : %s",pass)
}
else if (mitad) {
new pass[32]
get_cvar_string("sv_password",pass,sizeof(pass) - 1)
HudGris
show_hudmessage(0, "Ikinci Devre - ^nCounter-Terrorists : %i - Terrorists : %i ^nPassword : %s", ct_win + totalCT, tt_win + totalTT, pass )
}
/*set_task(0.5, "ses1")*/
remove_task(TASK_MSG)
}
public Kardas(id)
{
new arg[32];
read_argv(1,arg,31);
client_cmd(id,"record %s",arg)
chat_color(id,"C:\Program Files\Valve\cstrike Dizininde %s.dem Uzantili Dosya Kayit Dosyasidir.",arg)
}
public DemoCek(id) {
new menu = menu_create("\yDemo Kayit Etmek Istiyor musun ?", "menu_handler")
menu_additem(menu, "\yEvet", "1", 0);
menu_additem(menu, "\rHayir", "2", 0);
menu_setprop(menu,MPROP_NEXTNAME,"\yIleri")
menu_setprop(menu,MPROP_BACKNAME,"\yGeri")
menu_setprop(menu,MPROP_EXITNAME,"\r[CIKIS]");
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_CONTINUE
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
new adminismi[32]
get_user_name(id,adminismi,31)
switch(key)
{
case 1: {
client_cmd(id,"messagemode Demo_Ismini_Giriniz")
}
case 2: {
chat_color(id,"Tesekkurler Iyi Oyunlar.")
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}