Code:
#include <amxmodx>
#include <fun>
#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR "[ --<-@ ]"
#define MAX_WEAPONS 25
new g_szWeaps[MAX_WEAPONS][] = {
"ak47", "aug",
"awp", "deagle",
"elite", "famas",
"fiveseven", "g3sg1",
"galil", "glock18",
"m249", "m3",
"m4a1", "mac10",
"mp5navy", "p228",
"p90", "scout",
"sg550", "sg552",
"tmp", "ump45",
"usp", "xm1014",
"shield"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHud", "func", "be")
}
public func(id) {
new j = random_num( 0, MAX_WEAPONS - 1 )
for( new i = 0; i < MAX_WEAPONS; i++ ) {
if ( i == j ) {
new weap[25]
format(weap , 24 , "weapon_%s" , g_szWeaps[i])
give_item(id , weap)
ammo_up(id)
client_print( id, print_chat, "[WPN] Gave : %s", g_szWeaps[i] )
}
}
}
public ammo_up(id) {
give_item(id, "item_thighpack")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "item_assaultsuit")
give_item(id, "weapon_smokegrenade")
for ( new i = 0 ; i < 20 ; i++ ) {
give_item(id, "ammo_9mm")
give_item(id, "ammo_50ae")
give_item(id, "ammo_57mm" )
give_item(id, "ammo_357sig")
give_item(id, "ammo_762nato")
give_item(id, "ammo_556nato" )
give_item(id, "ammo_buckshot" )
give_item(id, "ammo_338magnum" )
give_item(id, "ammo_556natobox" )
give_item(id, "ammo_45acp")
}
}