It is currently 19 Sep 2018 21:52



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 5 posts ] 
 Cerere plugin zombie menu 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 31 Jan 2018 22:13
Posts: 10
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Va rog creatimi un menu pentru serverul zombie numai asta mi-a ramas si il finisez si va fi online am incercat sa fac un meniu ca acel de mai jos dar nu mi merge are showhack mult {London} va rog creatimi dupa modelul de mai jos sa se deschida la cemnzile celea sa fie si hudmessage..... si modelul de meniu la fel sa fie asa

Code:
#include amxmodx
new cvar_showhudmsg

#define PLUGIN "[ZM] Menu"
#define VERSION "3.0"
#define AUTHOR "THE MICKEY"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /menu", "server_menu" )
cvar_showhudmsg = register_cvar("show_hudmsg", "1")
}

public client_putinserver(id)
{
if(get_pcvar_num(cvar_showhudmsg))
set_task(1.0, "task_hudmsg", id, _, _, "b")
}

public task_hudmsg(id)
{
set_hudmessage(255, 255, 255, 0.1, 0, 0, 6.0, 12.0)
show_hudmessage(id, "Bine ai venit pe acest server minunat cu o atmosfera curata!!!")
}
public client_authorized(id)
{
client_cmd(id, "bind ^"M^" ^"say /menu^"")
}

public server_menu(id)
{
new i_Menu = menu_create("\dMenu ZM{BIOHAZARD} MOLDZONE.NET", "MMENU" )
menu_additem(i_Menu, "\w[$]\rArme\w[$]", "1", 0)
menu_additem(i_Menu, "\y[ZM] \wClass", "2", 0)
menu_additem(i_Menu, "\rMarchet", "3", 0)
menu_additem(i_Menu, "\wCumpara Admin/VIP", "4", 0)
menu_additem(i_Menu, "\d[Menu] \rVIP", "5", 0)
menu_additem(i_Menu, "\d[Menu] \rADMIN", "6", 0)
menu_additem(i_Menu, "\d[Menu] \rMoldZone", "7", 0)
menu_additem(i_Menu, "\yKnife Menu", "8", 0)
menu_additem(i_Menu, "\w{^}\dCaciulite\w{^}", "9", 0)

menu_setprop(i_Menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, i_Menu, 0)
return PLUGIN_HANDLED
}
public MMENU(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)

return PLUGIN_HANDLED
}
new s_Data[6], s_Name[64], i_Access, i_Callback
menu_item_getinfo(menu, item, i_Access, s_Data, charsmax(s_Data), s_Name, charsmax(s_Name), i_Callback)
new i_Key = str_to_num(s_Data)
switch(i_Key)
{
case 1:
{
client_cmd(id, "say /guns" )
}
case 2:
{
client_cmd(id, "say /class" )
}
case 3:
{
client_cmd(id, "say /shop" )
}
case 4:
{
client_cmd(id, "say /preturi" )
}
case 5:
{
client_cmd(id, "say /vipmenu" )
}
case 6:
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
client_cmd(id, "say /adminmenu" )
}
else
{
server_menu(id)
}
case 7:
{
client_cmd(id, "say /moldzone" )
}
case 8:
{
client_cmd(id, "say /knife" )
}
case 9:
{
client_cmd(id, "say /hats" )
}
}

menu_destroy(menu)
return PLUGIN_HANDLED

}
:rolling_eyes: :rolling_eyes: :rolling_eyes: :sob: :sob: :sob: :weary: :weary: :weary:


29 Jul 2018 20:46
Profile multumesc WWW
Online
Utilizator neserios
Utilizator neserios
User avatar

Joined: 10 Oct 2014 06:21
Posts: 3322
Location: Roman, Neamț
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (6 luni)
Restrictie moderator
Utilizator neserios
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>

new const Items[] = {
"\wArme",
"\wZM Class",
"\wMarket",
"\wCumpara Admin/VIP",
"\wMenu VIP",
"\wMenu Admin",
"\wMenu MoldZone",
"\wKnife Menu",
"\wHats"
};

public plugin_init() register_clcmd("say /menu", "h_Cmd_Menu");
public h_Cmd_Menu(id) {
new a = menu_create("Aici pui titlul", "handler");

for(new i=0; i<sizeof Items; i++)
menu_additem(a, Items[i]);

menu_setprop(a, MPROP_EXIT, MEXIT_ALL);
menu_display(id, a, 0);
}

public handler(id, a, item) {
if(!(item == MENU_EXIT)) {
switch(item) {
case 0: client_cmd(id, "say /guns");
case 1: client_cmd(id, "say /class");
case 2: client_cmd(id, "say /shop");
case 3: client_cmd(id, "say /preturi");
case 4: client_cmd(id, "say /vipmenu");
case 5: client_cmd(id, "say /adminmenu");
case 6: client_cmd(id, "say /moldzone");
case 7: client_cmd(id, "say /knife");
case 8: client_cmd(id, "say /hats");
}
}

menu_destroy(a);
return PLUGIN_HANDLED;
}

_________________


29 Jul 2018 22:55
Profile multumesc
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 5894
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Rolly Rolly
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Fost Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
Pana la urma ce este cu acest plugin?
Vad ca nu-ti ofera nimic din ce e trecut acolo

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI


29 Jul 2018 23:17
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 31 Jan 2018 22:13
Posts: 10
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Imi trebuie la serverul meu de zombie


30 Jul 2018 19:08
Profile multumesc WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 27 Jul 2015 15:35
Posts: 1082
Location: Mediaş
Detinator Steam: Da
SteamID: sosolino1945
Reputatie: Moderator ajutator
Fond eXtream: 0
up pentru DED :X

_________________
NU DA CLICK AICI!
---------------------------------------------------------------------------------------------------------------------------
»GO.BESTFRAG.RO || 5.83.43.217:27015« @ RESPAWN + SHOP + LEVEL + RANK + CS:GO SKINS
---------------------------------------------------------------------------------------------------------------------------


31 Aug 2018 13:27
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Majestic-12 [Bot], RealAlexanderTr and 59 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group