Junior Member
|
11-28-2008
, 15:21
[REQ]Buttons, time, added weapons, & awsome functions (PRO SCRIPTERS ONLY!)
|
#1
|
I need the following in a script form (completely done, not choppy):
* After you die, you wait 5 seconds and you can press d and then you respawn
* If you wait 30 seconds after you die, you will be automatically respawned
* When you enter the game, the menu will pop up forcing you to choose a class (after you pick your team/class)
* On case 7, I need a bazooka script that will add a bazooka in the game and the bazooka gets 1 shot per clip, and has 3 clips.
* You can heal dead teammates if you pick case 5 (a medic) and your person crouches down while bending now (needs a needle to heal)
* On case 1 & 2 I need mines that you can plant on ground & they blow up on contact
* With the menu classes Support & Anti-Armour, i need an option to throw ammo on the ground, & you get a full clip of ammo (this is unlimited)
Whoever does this will get +karma as much as possible (as many times as I can) because I know this will be EXTREMELY hard.
Here is the script:
PHP Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta> #include <fakemeta_util> #include <cstrike> #include <fun>
#define PLUGIN "COD3" #define AUTHOR "Blaze" #define VERSION "1.0" new cod3 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /menu", "menu") register_event("Deathmsg", "deathmsg", "a") cod3 = register_cvar("amx_cod3", "1") }
public deathmsg() { // The button thing, & then time waiting & all... }
public dropcurweapon(id){ engclient_cmd(id, "drop", "weapon_shield") engclient_cmd(id, "drop", "weapon_m3") engclient_cmd(id, "drop", "weapon_xm1014") engclient_cmd(id, "drop", "weapon_mp5navy") engclient_cmd(id, "drop", "weapon_p90") engclient_cmd(id, "drop", "weapon_mac10") engclient_cmd(id, "drop", "weapon_tmp") engclient_cmd(id, "drop", "weapon_ump45") engclient_cmd(id, "drop", "weapon_galil") engclient_cmd(id, "drop", "weapon_famas") engclient_cmd(id, "drop", "weapon_m4a1") engclient_cmd(id, "drop", "weapon_aug") engclient_cmd(id, "drop", "weapon_ak47") engclient_cmd(id, "drop", "weapon_sg552") engclient_cmd(id, "drop", "weapon_scout") engclient_cmd(id, "drop", "weapon_awp") engclient_cmd(id, "drop", "weapon_sg550") engclient_cmd(id, "drop", "weapon_g3sg1") engclient_cmd(id, "drop", "weapon_m249") engclient_cmd(id, "drop", "weapon_usp") engclient_cmd(id, "drop", "weapon_glock18") }
public menu(id) { if (get_pcvar_num(cod3) == 1) { new menu = menu_create("Pick a class:", "handler") menu_additem(menu, "Heavy Assault", "1", 0) menu_additem(menu, "Light Assault", "2", 0) menu_additem(menu, "Scout", "3", 0) menu_additem(menu, "Support", "4", 0) menu_additem(menu, "Medic", "5", 0) menu_additem(menu, "Rifleman", "6", 0) menu_additem(menu, "Anti-Armour", "7", 0) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu, 0) } }
public handler(id, menu, item) { if (item == MENU_EXIT) { menu_destroy(menu) return PLUGIN_HANDLED } new data[6], iName[64] new access, callback menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback) new key = str_to_num(data) switch(key) { case 1: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_m4a1") fm_give_item(id, "weapon_usp") cs_set_user_bpammo(id, CSW_M4A1, cs_get_user_bpammo(id, CSW_M4A1) + 90) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) // Mine Script menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_ak47") cs_set_user_bpammo(id, CSW_AK47, cs_get_user_bpammo(id, CSW_AK47) + 90) fm_give_item(id, "weapon_glock18") // Mine Script cs_set_user_bpammo(id, CSW_GLOCK18, cs_get_user_bpammo(id, CSW_GLOCK18) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 2: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_famas") fm_give_item(id, "weapon_usp") cs_set_user_bpammo(id, CSW_FAMAS, cs_get_user_bpammo(id, CSW_FAMAS) + 90) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_galil") fm_give_item(id, "weapon_glock18") cs_set_user_bpammo(id, CSW_GALIL, cs_get_user_bpammo(id, CSW_GALIL) + 90) cs_set_user_bpammo(id, CSW_GLOCK18, cs_get_user_bpammo(id, CSW_GLOCK18) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 3: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_awp") fm_give_item(id, "weapon_usp") // Barage Script cs_set_user_bpammo(id, CSW_AWP, cs_get_user_bpammo(id, CSW_AWP) + 30) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_awp") fm_give_item(id, "weapon_glock18") // Barage Script cs_set_user_bpammo(id, CSW_AWP, cs_get_user_bpammo(id, CSW_AWP) + 30) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 4: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_m249") fm_give_item(id, "weapon_usp") fm_give_item(id, "weapon_hegrenade") cs_set_user_bpammo(id, CSW_M249, cs_get_user_bpammo(id, CSW_M249) + 200) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_m249") fm_give_item(id, "weapon_glock18") fm_give_item(id, "weapon_hegrenade") cs_set_user_bpammo(id, CSW_M249, cs_get_user_bpammo(id, CSW_M249) + 200) cs_set_user_bpammo(id, CSW_GLOCK18, cs_get_user_bpammo(id, CSW_GLOCK18) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 5: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_m3") fm_give_item(id, "weapon_usp") fm_give_item(id, "weapon_smokegrenade") cs_set_user_bpammo(id, CSW_M3, cs_get_user_bpammo(id, CSW_M3) + 30) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_m3") fm_give_item(id, "weapon_glock18") fm_give_item(id, "weapon_hegrenade") cs_set_user_bpammo(id, CSW_M3, cs_get_user_bpammo(id, CSW_M3) + 30) cs_set_user_bpammo(id, CSW_GLOCK18, cs_get_user_bpammo(id, CSW_GLOCK18) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 6: { if (get_user_team(id) == 2) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_scout") fm_give_item(id, "weapon_usp") fm_give_item(id, "weapon_hegrenade") cs_set_user_bpammo(id, CSW_SCOUT, cs_get_user_bpammo(id, CSW_SCOUT) + 90) cs_set_user_bpammo(id, CSW_USP, cs_get_user_bpammo(id, CSW_USP) + 24) menu_destroy(menu) return PLUGIN_HANDLED } if (get_user_team(id) == 1) { dropcurweapon(id) cs_set_no_knives(1) fm_give_item(id, "weapon_scout") fm_give_item(id, "weapon_glock18") fm_give_item(id, "weapon_hegrenade") cs_set_user_bpammo(id, CSW_SCOUT, cs_get_user_bpammo(id, CSW_SCOUT) + 90) cs_set_user_bpammo(id, CSW_GLOCK18, cs_get_user_bpammo(id, CSW_GLOCK18) + 24) menu_destroy(menu) return PLUGIN_HANDLED } } case 7: { // The bazooka script that will give them that bazooka } } menu_destroy(menu) return PLUGIN_HANDLED }
Last edited by ~`Blaze~`; 11-28-2008 at 16:36.
|
|