need /weapons plugin and multiplayer bhop plu

Started by Shaggy
01/09/2010 04:33
Page 1 of 1
Shaggy01/09/2010 04:33

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

tv!X^^ mapper01/09/2010 09:25(edited 01/09/2010 09:26)

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...

tv!X^^ mapper01/09/2010 09:32

and Multiplayer bhops search on google. MpBhops by ConnorMcLeon

Shaggy03/09/2010 05:03

how does 1 compile? xD

tv!X^^ mapper03/09/2010 19:13

omg, go to www.amxmodx.org/

Shaggy03/09/2010 23:13

thanks a lot, :) everythings working great

tv!X^^ mapper03/09/2010 23:20

No Problem :)

JocA Banned04/09/2010 11:06(edited 04/09/2010 11:07)

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...

tv!X^^ mapper04/09/2010 12:51

You don't know what is code, code "Trash plugin", and this is my plugin, "KZBA" is prefix of plugin. bot.

JocA Banned04/09/2010 14:58

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...

tv!X^^ mapper05/09/2010 23:37

xaxaxaxaxaxxax, no comment xaxaxaxaxaxaxa

Page 1 of 1

Please log in to post replies.