need /weapons plugin and multiplayer bhop plu
hey, im startin up a private kz server and i cant seem to find a plugin for /weapons to get all the weapons nor can i find a standalone or packaged plugin to make bhop blocks stay up after being touched. i dont know the names of these plugins so i really dont know what to look for :/ i could use some help
I make for you:
#include
#include
#include
#define PLUGIN "Weapon + menu"
#define VERSION "1.1/1"
#define AUTHOR ".tv!X^^"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /weapons", "cmdWpnMenu")
}
public cmdWpnMenu(id) {
new cmdWeaponMenu = menu_create("[.tv!X^^ WEAPON MENU]", "cmdHWpnMenu")
menu_additem(cmdWeaponMenu, "\wKZBA- DEAGLE", "1")
menu_additem(cmdWeaponMenu, "\wKZBA- AWP", "2")
menu_additem(cmdWeaponMenu, "\wKZBA- m4a1", "3")
menu_additem(cmdWeaponMenu, "\wKZBA- AK-47", "4")
menu_additem(cmdWeaponMenu, "\wKZBA- p90", "5");
menu_additem(cmdWeaponMenu, "\wKZBA- HE-Grenade", "6");
menu_additem(cmdWeaponMenu, "\wKZBA- HP-100", "7");
menu_display(id, cmdWeaponMenu, 0);
return PLUGIN_HANDLED
}
public cmdHWpnMenu(id, cmdWeaponMenu, item) {
if (item == MENU_EXIT) {
menu_destroy(cmdWeaponMenu);
return PLUGIN_HANDLED;
}
new Data[2];
new Access;
new Callback;
menu_item_getinfo(cmdWeaponMenu, item, Access, Data, 1, _, _, Callback);
new Key = str_to_num(Data);
switch (Key)
{
case 1: give_item(id, "weapon_deagle");
case 2: give_item(id, "weapon_awp");
case 3: give_item(id, "weapon_m4a1");
case 4: give_item(id, "weapon_ak47");
case 5: give_item(id, "weapon_p90");
case 6: give_item(id, "weapon_hegrenade");
case 7: set_user_health(id, 100);
}
menu_destroy(cmdWeaponMenu);
return PLUGIN_HANDLED;
}
Just compile it =D and add weapons, for you.... i add deagle, awp, etc...
and Multiplayer bhops search on google. MpBhops by ConnorMcLeon
how does 1 compile? xD
omg, go to www.amxmodx.org/
thanks a lot, :) everythings working great
No Problem :)
hm gg tvix again stealed original code..
and i dont understand, why did u send to him KZ-Balkan code?
new cmdWeaponMenu = menu_create("[.tv!X^^ WEAPON MENU]", "cmdHWpnMenu")
menu_additem(cmdWeaponMenu, "\wKZBA- DEAGLE", "1")
menu_additem(cmdWeaponMenu, "\wKZBA- AWP", "2")
menu_additem(cmdWeaponMenu, "\wKZBA- m4a1", "3")
menu_additem(cmdWeaponMenu, "\wKZBA- AK-47", "4")
menu_additem(cmdWeaponMenu, "\wKZBA- p90", "5");
menu_additem(cmdWeaponMenu, "\wKZBA- HE-Grenade", "6");
menu_additem(cmdWeaponMenu, "\wKZBA- HP-100", "7");P.S.:If u dont know(speak) english , dont try to be a coder in amxx...
You don't know what is code, code "Trash plugin", and this is my plugin, "KZBA" is prefix of plugin. bot.
lol if i m bot , then u r the biggest bot..
u !only change! the code , and than put ur nick in "#define AUTHOR"
if you want to be a coder, add a new command,dont change only the HUDtext message ...
and on this site is english only allowed lang,better use translator...
xaxaxaxaxaxxax, no comment xaxaxaxaxaxaxa
Please log in to post replies.