Raised This Month: $32 Target: $400
 8% 

Help please.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
newstartnewbegin2
Junior Member
Join Date: Jul 2019
Old 07-22-2019 , 01:09   Help please.
Reply With Quote #1

Can someone please add Bunnyhop/nofalldmg/2x jump ?! please.


#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fun>

new const PLUGIN[] = "Weapons menu";
new const VERSION[] = "1.0";
new const AUTHOR[] = "~D4rkSiD3Rs~";

new bool: WeaponChosen[33];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_clcmd("weapons", "WeaponMenu");
register_clcmd("say /weapons", "WeaponMenu")

RegisterHam(Ham_Spawn, "player", "Spawn", 1);
}

public client_putinserver(id)
{
WeaponChosen[id] = false;
}

public Spawn(id)
{
if(is_user_alive(id))
{
WeaponChosen[id] = false;
WeaponMenu(id);
}
}

public WeaponMenu(id)
{
if(WeaponChosen[id])
return PLUGIN_HANDLED;

new menu = menu_create ("Weapons Menu", "MenuHandler");

menu_additem(menu, "AK47 + Deagle", "1");
menu_additem(menu, "M4A1 + Deagle", "2");
menu_additem(menu, "AWP + Deagle", "3");

menu_display(id, menu, 0 );
return 1;
}

public MenuHandler(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

switch (key)
{
case 1:
{
WeaponChosen[id] = true;
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 90);
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_AK47, 90);
give_item (id, "weapon_hegrenade");
}
case 2:
{
WeaponChosen[id] = true;
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 90);
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
give_item (id, "weapon_hegrenade");
}
case 3:
{
WeaponChosen[id] = true;
give_item(id, "weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 90);
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_AWP, 90);
give_item (id, "weapon_hegrenade");
}
}

menu_destroy (menu);
return 1;
}
newstartnewbegin2 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode