PHP- Kodu:
#include <amxmodx>#include <amxmisc>#include <fun>
#define PLUGIN "Oyun Menu Plugini"#define VERSION "2.2"#define AUTHOR "CasTieL"
#define ADMIN_KICK
public plugin_init() { register_plugin("\r[JB] \wOyunMenusu","2.2","\yCasTieL") register_clcmd("say /oyunmenu","top") //register_logevent("ayar_sifirla", 2,"1=Round_Start") } public top(id) { if( !is_user_alive(id) ) return PLUGIN_HANDLED new menu = menu_create("\rOyun Menu \y[ CasTieL ]", "menu_handler") menu_additem(menu, "\r[JB] \ySaklanbac Oyunu", "1", 0); menu_additem(menu, "\r[JB] \y300Sparta Oyunu", "2", 0); menu_additem(menu, "\r[JB] \yYakartop Oyunu", "3", 0); menu_additem(menu, "\r[JB] \yCete Oyunu", "4", 0); menu_additem(menu, "\r[JB] \yYakalanbac Oyunu", "5", 0); menu_additem(menu, "\r[JB] \ySimit Oyunu", "6", 0); menu_additem(menu, "\r[JB] \yCTKoruma", "7", 0); menu_additem(menu, "\r[JB] \yOyunlari Kapat", "8", 0); menu_additem(menu, "\r[JB] \yC4 Oyunu", "9", 0); menu_additem(menu, "\r[JB] \yHayalet Oyunu", "10",0); menu_additem(menu, "\r[JB] \yKus Oyunu", "11",0); menu_additem(menu, "\r[JB] \yZombi Oyunu", "12",0); menu_additem(menu, "\r[JB] \yKorebe Oyunu", "13",0); menu_additem(menu, "\r[JB] \yCatisma Oyunu", "14",0); menu_additem(menu, "\r[JB] \yUcan Pipi Oyunu", "15",0); menu_additem(menu, "\r[JB] \ySustum Deagle Oyunu", "16",0); menu_setprop(menu, MPROP_NEXTNAME, "Diger Oyunlar"); menu_setprop(menu, MPROP_BACKNAME, "Onceki Oyunlar"); menu_setprop(menu, MPROP_EXITNAME, "Menuyu Kapat"); 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: { server_cmd("amx_godmode @CT 1") server_cmd("amx_weapon @CT g3sg1") server_cmd("amx_weapon @CT 14") server_cmd("amx_heal @CT 9999") server_cmd("amx_disarm @T") server_cmd("amx_unammo @CT 1") chat_color(id, "!gSaklanbac Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gSaklanbac Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 2: { server_cmd("amx_weapon @T shield") server_cmd("amx_unammo @all 1") server_cmd("amx_godmode @CT 1") server_cmd("amx_heal @CT 9999999") server_cmd("amx_disarm @CT") server_cmd("amx_weapon @CT 100") chat_color(id,"!t[CSP] !g300Sparta Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !g300Sparta Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 3: { server_cmd("amx_glow @T blue") server_cmd("amx_godmode @CT 1") server_cmd("amx_heal @CT 9999999") server_cmd("amx_disarm @all") server_cmd("amx_unammo @CT 1") server_cmd("amx_fire @CT 1") chat_color(id,"!t[CSP] !gYakartop Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gYakartop Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 4: { server_cmd("amx_weapon @T 43") server_cmd("amx_weapon @T 42") server_cmd("amx_weapon @T 14") server_cmd("amx_weapon @T 48") server_cmd("amx_armor @all 100") server_cmd("amx_heal @T 900") server_cmd("amx_weapon @CT 100") server_cmd("amx_unammo @all 1") server_cmd("amx_godmode @CT 1") server_cmd("amx_heal @CT 9999999") chat_color(id,"!t[CSP] !gCete Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gCete Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 5: { server_cmd("amx_heal @CT 999999") server_cmd("amx_godmode @CT 1") server_cmd("amx_speed @CT 1") server_cmd("amx_disarm @all") chat_color(id,"!t[CSP] !gYakalanbac Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gYakalanbac Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 6: { server_cmd("amx_heal @CT 900") server_cmd("amx_disarm @all") chat_color(id,"!t[CSP] !gSimit Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gSimit Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 7: { server_cmd("amx_godmode @CT 1") server_cmd("amx_heal @CT 99999999") chat_color(id,"!t[CSP] !gCT Koruma Aktif Edildi.!") chat_color(id,"!t[CSP] !gCT Koruma Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 8: { server_cmd("amx_godmode @all 0") server_cmd("amx_unammo @all 0") server_cmd("amx_speed @all 0") server_cmd("amx_noclip @all 0") server_cmd("amx_cvar sv_gravity 800") server_cmd("amx_glow @all off") server_cmd("amx_cvar mp_friendlyfire 0") server_cmd( "amx_cvar sv_voiceenable 1") server_cmd( "amx_cvar sv_gravity 800") server_cmd("Tum Ayarlar Eski Haline Getirildi.!") server_cmd("Tum Ayarlar Eski Haline Getirildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 9: { server_cmd("amx_disarm @T") server_cmd("amx_bury @T") server_cmd("amx_weapon @T 91") chat_color(id,"!t[CSP] !gC4 Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gC4 Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 10: { server_cmd("amx_heal @CT 900") server_cmd("amx_disarm @all") server_cmd("amx_weapon @T 43") server_cmd("amx_weapon @T 14") server_cmd("amx_noclip @CT 1") server_cmd("amx_armor @all 100") chat_color(id,"!t[CSP] !gHayalet Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gHayalet Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 11: { server_cmd("amx_glow @T white") server_cmd("amx_disarm @all") server_cmd("amx_weapon @CT 100") server_cmd("amx_heal @CT 30000") server_cmd("amx_godmode @CT 1") server_cmd("amx_cvar sv_gravity 100") server_cmd("amx_unammo @all 1") chat_color(id,"!t[CSP] !gKus Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gKus Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 12: { server_cmd("amx_disarm @all") server_cmd("amx_cvar sv_gravity 200") server_cmd("amx_cvar sv_flashlight 1") server_cmd("amx_cvar sv_voiceenable 0") server_cmd("amx_weapon @T 100") server_cmd("amx_weapon @T 49") server_cmd("amx_weapon @T 43") server_cmd("amx_weapon @T 42") server_cmd("amx_weapon @T 46") server_cmd("amx_heal @CT 15000") chat_color(id,"!t[CSP] !gZombi Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gZombi Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 13: { server_cmd("amx_glow @CT 0 0 0 0") server_cmd("amx_disarm @all") server_cmd("amx_weapon @T 43") server_cmd("amx_weapon @T 43") server_cmd("amx_weapon @T 42") server_cmd("amx_weapon @T 100") chat_color(id,"!t[CSP] !gKorebe Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gKorebe Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 14: { server_cmd("amx_disarm @all") server_cmd("amx_weapon @all 43") server_cmd("amx_weapon @all 42") server_cmd("amx_weapon @CT 100") server_cmd("amx_weapon @T 46") server_cmd("amx_weapon @T 14") server_cmd("amx_unammo @all 1") server_cmd("amx_heal @CT 400") chat_color(id,"!t[CSP] !gCatisma Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gCatisma Oyunu Aktif Edildi.!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 15: { server_cmd("amx_disarm @T") server_cmd("amx_cvar sv_gravity 100") server_cmd("amx_heal @CT 999999") server_cmd("amx_godmode @CT 1") chat_color(id,"!t[CSP] !gUcan Pipi Oyunu Aktif Edildi!") chat_color(id,"!t[CSP] !gUcan Pipi Oyunu Aktif Edildi!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } case 16: { server_cmd("amx_disarm @T") server_cmd("amx_bury @T") server_cmd("amx_heal @CT 9999999") server_cmd("amx_godmode @CT 1") chat_color(id,"!t[CSP] !gSustum Deagle Oyunu Aktif Edildi!") chat_color(id,"!t[CSP] !gSustum Deagle Oyunu Aktif Edildi!") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") chat_color(id,"!t[CSP] !gPlugin Yapim : CasTieL") } } return PLUGIN_CONTINUE}
stock chat_color(const id, const input[], any:...){ new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") //yesil replace_all(msg, 190, "!y", "^1") //sari replace_all(msg, 190, "!t", "^3") //takim-rengi replace_all(msg, 190, "!team2", "^0") //bilmiom if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } }}