Версия: 1.0
Описание: Плъгинът добавя клиент командите в сървъра,при натискане на буквата "M".
Библиотеки:
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <cstrike>
VIP
|
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 |
aim_aztec Играчи: 0/16 |
|
VIP
|
93.123.16.4:27022 | Cs-PlovdiV.com - Aim Attack | aim_aztec | 0/16 |
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <cstrike>
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <cstrike>
new const menu_names[][] =
{
"",
"Change Class",
"Buy Items",
"View Credits",
"View Achievements",
"Unlock Weapons",
"Buy Upgrades",
"Reactivate Weapon Menu",
"Respawn"
}
new const menu_cmds[][] =
{
"",
"class",
"shop",
"credits",
"mystats",
"unlock",
"upgrade",
"guns",
"respawn"
}
public plugin_init()
{
register_plugin("VZBB Addon : Commands Menu","1.0","<VeCo>")
register_clcmd("jointeam","m_menu")
register_clcmd("chooseteam","m_menu")
}
public m_menu(id)
{
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED) return PLUGIN_CONTINUE
show_command_menu(id)
return PLUGIN_HANDLED
}
public show_command_menu(id)
{
static menu, i,i_str[3]
menu = menu_create("VZBB Commands Menu:","command_menu_handler")
for(i=1;i<9;i++)
{
num_to_str(i,i_str,2)
menu_additem(menu,menu_names[i],i_str)
}
menu_display(id,menu)
}
public command_menu_handler(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
static access,callback, info[3]
menu_item_getinfo(menu,item, access, info,2, _,_, callback)
client_cmd(id,"say /%s",menu_cmds[str_to_num(info)])
menu_destroy(menu)
return PLUGIN_HANDLED
}
Classic Shell? Explorers? What are those?Michaelnut написа: ↑24 Юни 2018, 02:43 Is it possible to implement the possibility to add Classic Shell commands to the Explorers menu rather than using the toolbar?
; AMX Mod X plugins
arenaAC1.amxx
arenaAC2.amxx
arenaAC3.amxx
arenaAC4.amxx
arenaAC5.amxx
vzbb_mod_nikolow_fix.amxx
AdminPrefix.amxx
vzbb_addon_commands_menu.amxx
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin
; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands
; Counter-Strike
;restmenu.amxx ; restrict weapons menu
statsx.amxx ; stats on death or round end (CSX Module required!)
;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSX Module required!)
; Custom - Add 3rd party plugins here
vzbb_addon_prep_time.amxx
vzbb_item_antidote.amxx
vzbb_item_battlebuild.amxx
vzbb_item_firenade.amxx
vzbb_item_frostnade.amxx
vzbb_item_healthkit.amxx
vzbb_item_nadeimmune.amxx
vzbb_item_protection.amxx
vzbb_item_scannade.amxx
vzbb_item_self_explosion.amxx
vzbb_item_shield.amxx
vzbb_item_toxic_mine.amxx
vzbb_item_warzzz_mine.amxx
vzbb_zclass_big.amxx
vzbb_zclass_fast.amxx
vzbb_zclass_jump.amxx
vzbb_zclass_regen.amxx
vzbb_zclass_vamp.amxx
vzbb_zclass_skull.amxx
;amx_demorecorder.amxx
Block_B_Shop.amxx
forward_speed.amxx
instant_autoteambalance_nocrash.amxx
no_retry.amxx
rs.amxx
afkkicker.amxx
amx_show_ip.amxx
autobuy_crash_fix.amxx
allow_roundfinish.amxx
team_join.amxx
stuck.amxx
Show_Victim_HP_On_Damage.amxx
credit_per_dmg.amxx
vzbb_happy_credit_hour.amxx
Потребители разглеждащи този форум: 0 регистрирани и 0 госта