Post by DeXTeR on Jan 16, 2018 19:23:57 GMT
Supply Boxes can be obtained randomly and are scattered around the map. They contain several types of weapons or items inside, depending on the mode you play.
--------------------------------------------------------------------------------------------------------------------------------------------
Cvars:
Use:
You add a plugins to your server, set up CVAR settings at supplybox.cfg or amxx.cfg and dont forgot resorces ("models/sprites/sounds").
--------------------------------------------------------------------------------------------------------------------------------------------
SupplyBox Additional Plugins:
The supply box "rewards" is added with the help of additional plugins and given randomly.
--------------------------------------------------------------------------------------------------------------------------------------------
Example of Additional Plugins:
--------------------------------------------------------------------------------------------------------------------------------------------
Xp Reward (GunXP):
--------------------------------------------------------------------------------------------------------------------------------------------
Armor Reward:
--------------------------------------------------------------------------------------------------------------------------------------------
Grenades Reward:
--------------------------------------------------------------------------------------------------------------------------------------------
Ammo Pack Reward:
--------------------------------------------------------------------------------------------------------------------------------------------
Requirements:
AMXMODX 1.8.3 (Just tested in it only)
--------------------------------------------------------------------------------------------------------------------------------------------
Features:
Test and you will know my amazing Supplybox
--------------------------------------------------------------------------------------------------------------------------------------------
Credit:
TbagT
Dias
joropito
--------------------------------------------------------------------------------------------------------------------------------------------
Notice:
Dont think about spawn points because they are auto generate
Also This is not slowhacking plugin with amxx fille so i wont post sma so dont ask me for it
--------------------------------------------------------------------------------------------------------------------------------------------
Download Link:
SupplyBox.rar
Cvars:
sb_meter "1" // On/Off sprites of meter far
sb_glow_status "1" // On/Off glow
sb_glow_random "1" // On/Off glow random ( need sb_glow_status to be 1 for work!)
sb_glow_color "000 255 000" // when sb_random_color is "0" mean off, and sb_glow_status is "1" mean on, will read glow colors from this cvar for set it
sb_team "3" // 1 = TEAM CT - 2 = TEAM T - 3 = TEAM CT/T
sb_light "1" // On/Off light of model
sb_light_radius "8" // If "sb_light" = 1 you will be able to edit it radius
sb_rotate "1" // On/Off rotate of model
sb_spawn_time "60.0" // Spawn boxes every "default 60.0 Sec" X Sec
sb_spawn_type "3" // 1 = Msg center only - 2 sound only - 3 msg center + sound
sb_spawn_msg "... Presents arrived ..." // center msg spawn
sb_prefix "!g[!tSupplyBox!g]" // prefix of chat
sb_min_spawns "7" // min spawns of boxes
sb_max_spawns "14" // max spawns of boxes
Use:
You add a plugins to your server, set up CVAR settings at supplybox.cfg or amxx.cfg and dont forgot resorces ("models/sprites/sounds").
--------------------------------------------------------------------------------------------------------------------------------------------
SupplyBox Additional Plugins:
The supply box "rewards" is added with the help of additional plugins and given randomly.
--------------------------------------------------------------------------------------------------------------------------------------------
Example of Additional Plugins:
--------------------------------------------------------------------------------------------------------------------------------------------
Xp Reward (GunXP):
#include <amxmodx>
#include <fun>
#include <supply>
#include <gunxpmod>
public plugin_precache()
{
register_box_content("Xperience Box");
}
public plugin_init()
{
register_plugin("Xperience Box", "1.0", "TBagT");
}
public sb_pickup_event(id)
{
new xp = 0;
xp = random_num(1, 500);
set_user_xp(id, get_user_xp(id) + xp);
client_print(id, print_center, "Got %i XP", xp);
}
--------------------------------------------------------------------------------------------------------------------------------------------
Armor Reward:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <supply>
public plugin_precache()
{
register_box_content("Armor Box");
}
public plugin_init()
{
register_plugin("Armor Box", "1.0", "TBagT");
}
public sb_pickup_event(id)
{
new ap = 0;
ap = random_num(1, 50);
new CsArmorType:ArmorType, iArmor = cs_get_user_armor(id, ArmorType);
cs_set_user_armor(id, iArmor + ap, CS_ARMOR_VESTHELM);
client_print(id, print_center, "Got %i Armor", ap);
}
--------------------------------------------------------------------------------------------------------------------------------------------
Grenades Reward:
#include <amxmodx>
#include <fun>
#include <supply>
public plugin_precache()
{
register_box_content("Grenades Box");
}
public plugin_init()
{
register_plugin("Grenades Box", "1.0", "TBagT");
}
public sb_pickup_event(id)
{
give_item(id, "weapon_flashbang");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_smokegrenade");
}
--------------------------------------------------------------------------------------------------------------------------------------------
Ammo Pack Reward:
#include <amxmodx>
#include <fun>
#include <supply>
#include <zombieplague>
public plugin_precache()
{
register_box_content("Ammo Pack Box");
}
public plugin_init()
{
register_plugin("Ammo Pack Box", "1.0", "DeXTeR");
}
public sb_pickup_event(id)
{
new ap = 0;
ap = random_num(1, 50);
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + ap)
client_print(id, print_center, "Got %i AP", ap);
}
--------------------------------------------------------------------------------------------------------------------------------------------
Requirements:
AMXMODX 1.8.3 (Just tested in it only)
--------------------------------------------------------------------------------------------------------------------------------------------
Features:
Test and you will know my amazing Supplybox
--------------------------------------------------------------------------------------------------------------------------------------------
Credit:
TbagT
Dias
joropito
--------------------------------------------------------------------------------------------------------------------------------------------
Notice:
Dont think about spawn points because they are auto generate
Also This is not slowhacking plugin with amxx fille so i wont post sma so dont ask me for it
--------------------------------------------------------------------------------------------------------------------------------------------
Download Link:
SupplyBox.rar