Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#define PLUGIN "Oyun Menu New"
#define VERSION "1.1"
#define AUTHOR "ByShadow"
public plugin_init() {
register_plugin("\wOyunMenu\rNew","1.1","\yByShadow")
register_clcmd("say /oyunnew","top")
register_clcmd("say /gunduz","Normal")
//register_logevent("ayar_sifirla", 2,"1=Round_Start")
}
public top(id) {
if( !is_user_alive(id) ) return PLUGIN_HANDLED
new menu = menu_create("\yOyunMenuNew\r[-ByShadow-]", "menu_handler")
menu_additem(menu, "\r[NeW]\ySaklanbac Oyunu", "1", ADMIN_BAN);
menu_additem(menu, "\r[NeW]\yC4 Oyunu", "2", ADMIN_BAN);
menu_additem(menu, "\r[NeW]\yKopekbaligi Oyunu", "3", 0);
menu_additem(menu, "\r[NeW]\ySimit Oyunu", "4", 0);
menu_additem(menu, "\r[NeW]\yYakartop Oyunu", "5", 0);
menu_additem(menu, "\r[NeW]\yCatisma Oyunu[-1K HP-]", "6", 0);
menu_additem(menu, "\r[NeW]\yCatisma Oyunu[-2K HP-]", "7", 0);
menu_additem(menu, "\r[NeW]\yKule Oyunu", "8", 0);
menu_additem(menu, "\r[NeW]\ySustum Deagle Oyunu", "9", 0);
menu_additem(menu, "\r[NeW]\yKus Avi Oyunu "10", 0);
menu_additem(menu, "\r[NeW]\y300 SpartalI", "11", 0);
menu_additem(menu, "\r[NeW]\yZM [-10K HP-]", "12", 0);
menu_additem(menu, "\r[NeW]\yZM [-20K HP-]", "13", 0);
menu_additem(menu, "\r[NeW]\yZM [-30K HP-]", "14", 0);
menu_additem(menu, "\r[NeW]\yFF [-Bomba-]", "15", 0);
menu_additem(menu, "\r[NeW]\yFF [-Max Payne-]", "16", 0);
menu_additem(menu, "\r[NeW]\yFF [-Deagle-]", "17", 0);
menu_additem(menu, "\r[NeW]\yFF [-Awp + Scout-]", "18", 0);
menu_additem(menu, "\r[NeW]\yFF [-AK47 + M4A1-]", "19", 0);
menu_additem(menu, "\r[NeW]\yFF [-M3-]", "20", 0);
menu_additem(menu, "\r[NeW]\yFF [-Tabancalar-]", "21", 0);
menu_additem(menu, "\r[NeW]\yAyarlari Sifirla", "22", 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(id,"amx_godmode @CT 1")
server_cmd(id,"amx_weapon @CT g3sg1")
server_cmd(id,"amx_weapon @CT 14")
server_cmd(id,"amx_heal @CT 9500")
server_cmd(id,"amx_disarm @T")
server_cmd(id,"amx_unammo @CT 1")
chat_color(id,"!t[NeW] !gSaklanbac Oyunu Aktif!")
chat_color(id,"!t[NeW] !gSaklanbac Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 2: {
server_cmd(id,"amx_bury @T")
server_cmd(id,"amx_weapon @T c4")
chat_color(id,"!t[NeW] !gC4 Oyunu Aktif !")
chat_color(id,"!t[NeW] !gC4 Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 3: {
server_cmd(id,"amx_glow @T Red")
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @CT 1500")
server_cmd(id,"amx_glow @CT Blue")
server_cmd(id,"amx_disarm @T")
server_cmd(id,"amx_unammo @CT 1")
chat_color(id,"!t[NeW] !gKopekBaligi Oyunu Aktif!")
chat_color(id,"!t[NeW] !gKopekBaligi Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 4: {
server_cmd(id,"amx_glow @t White")
server_cmd(id,"amx_glow @CT Blue")
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @CT 900")
chat_color(id,"!t[NeW] !gSimit Oyunu AktiF!")
chat_color(id,"!t[NeW] !gSimit Oyunu AktiF!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 5: {
server_cmd(id,"amx_heal @CT 999999999999")
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_fire @CT")
chat_color(id,"!t[NeW] !gYakartop Oyunu Aktif!")
chat_color(id,"!t[NeW] !gYakartop Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 6: {
server_cmd(id,"amx_heal @CT 900")
server_cmd(id,"amx_weapon @all 43")
server_cmd(id,"amx_weapon @all 42")
server_cmd(id,"amx_weapon @all 48")
server_cmd(id,"amx_glow @t Red")
server_cmd(id,"amx_glow @CT Blue")
chat_color(id,"!t[NeW] !gCatisma Oyunu Aktif!")
chat_color(id,"!t[NeW] !gCatisma Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 7: {
server_cmd(id,"amx_heal @CT 1900")
server_cmd(id,"amx_weapon @all 43")
server_cmd(id,"amx_weapon @all 42")
server_cmd(id,"amx_weapon @all 48")
server_cmd(id,"amx_glow @t Red")
server_cmd(id,"amx_glow @CT Blue")
chat_color(id,"!t[NeW] !gCatisma Oyunu Aktif!")
chat_color(id,"!t[NeW] !gCatisma Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 8: {
server_cmd(id,"amx_cvar sv_parachute 0")
server_cmd(id,"amx_drug @t")
server_cmd(id,"amx_glow @t Gold")
server_cmd(id,"amx_weapon @CT 49")
chat_color(id,"!t[NeW] !gKule Oyunu Aktif!")
chat_color(id,"!t[NeW] !gKule Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 9: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @t 100")
server_cmd(id,"amx_weapon @CT 14")
server_cmd(id,"amx_weapon @ALL 82")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_heal @cT 9600")
server_cmd(id,"amx_bury @T")
chat_color(id,"!t[NeW] !gSustum Deagle Oyunu Aktif!")
chat_color(id,"!t[NeW] !gSustum Deagle OyunuAktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 10: {
server_cmd(id,"amx_heal @CT 10000")
server_cmd(id,"amx_unammo @CT 1")
server_cmd(id,"amx_weapon @CT 46")
server_cmd(id,"amx_weapon @CT 48")
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_cvar sv_gravity 250")
server_cmd(id,"amx_glow @t red")
server_cmd(id,"amx_glow @CT Aqua")
chat_color(id,"!t[NeW] !gKus Avi Oyunu Aktif!")
chat_color(id,"!t[NeW] !gKus Avi Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 11: {
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_unammo @CT 1")
server_cmd(id,"amx_weapon @t 87")
server_cmd(id,"amx_weapon @CT 51")
server_cmd(id,"amx_weapon @CT 43")
server_cmd(id,"amx_glow @T red")
chat_color(id,"!t[NeW] !g300 Spartali Oyunu Aktif!")
chat_color(id,"!t[NeW] !g300 Spartali Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 12: {
server_cmd(id,"amx_heal @CT 10000")
server_cmd(id,"amx_unammo @all 1")
server_cmd(id,"amx_weapon @ALL 43")
server_cmd(id,"amx_weapon @ALL 42")
server_cmd(id,"amx_weapon @ALL 48")
server_cmd(id,"amx_weapon @ALL 49")
server_cmd(id,"amx_glow @CT Blue")
chat_color(id,"!t[NeW] !gZM Oyunu(10K HP) Aktif!")
chat_color(id,"!t[NeW] !gZM Oyunu(10K HP) Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 13: {
server_cmd(id,"amx_heal @CT 20000")
server_cmd(id,"amx_unammo @all 1")
server_cmd(id,"amx_weapon @ALL 43")
server_cmd(id,"amx_weapon @ALL 42")
server_cmd(id,"amx_weapon @ALL 48")
server_cmd(id,"amx_weapon @ALL 49")
server_cmd(id,"amx_glow @CT Purple")
chat_color(id,"!t[NeW] !gZM Oyunu(10K HP) Aktif!")
chat_color(id,"!t[NeW] !gZM Oyunu(20K HP) Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 14: {
server_cmd(id,"amx_heal @CT 30000")
server_cmd(id,"amx_unammo @all 1")
server_cmd(id,"amx_weapon @ALL 43")
server_cmd(id,"amx_weapon @ALL 42")
server_cmd(id,"amx_weapon @ALL 48")
server_cmd(id,"amx_weapon @ALL 49")
server_cmd(id,"amx_glow @CT red")
chat_color(id,"!t[NeW] !gZM Oyunu(30K HP) Aktif!")
chat_color(id,"!t[NeW] !gZM Oyunu(30K HP) Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 15: {
for(new id= 1; id < 33; id++)
{
if(is_user_connected(id) && is_user_alive(id) && get_user_team(id) == 1) {
give_item(id,"weapon_hegrenade")
cs_set_user_bpammo(id,CSW_HEGRENADE,10)
}
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rSilah: !w10 Adet Bomba")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 16: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 16")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 17: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 14")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 18: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 46")
server_cmd(id,"amx_weapon @T 48")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 19: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 43")
server_cmd(id,"amx_weapon @T 42")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 20: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 21")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 21: {
server_cmd(id,"amx_godmode @CT 1")
server_cmd(id,"amx_heal @T 400")
server_cmd(id,"amx_cvar mp_friendlyfire 1")
server_cmd(id,"amx_unammo @T 1")
server_cmd(id,"amx_weapon @T 11")
server_cmd(id,"amx_weapon @T 12")
server_cmd(id,"amx_weapon @T 13")
server_cmd(id,"amx_weapon @T 14")
server_cmd(id,"amx_weapon @T 15")
server_cmd(id,"amx_weapon @T 16")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !gFF Oyunu Aktif!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
case 22: {
server_cmd(id,"amx_godmode @CT 0")
server_cmd(id,"amx_unammo @all 0")
server_cmd(id,"amx_disarm @t")
server_cmd(id,"amx_glow @all OFF")
server_cmd(id,"amx_cvar mp_friendlyfire 0")
server_cmd(id,"amx_cvar sv_parachute 1")
server_cmd(id,"amx_glow @CT Blue")
server_cmd(id,"amx_unbury @T")
server_cmd(id,"amx_cvar sv_gravity 800")
chat_color(id,"!t[NeW] !gAyarlar Duzeltildi!")
chat_color(id,"!t[NeW] !gAyarlar Duzeltildi!")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
chat_color(id,"!t[NeW] !rPlugin Yapim : !wByShadow")
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
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();
}
}
}
}