View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-06-2011 , 16:17   Re: Automatic Grenade Giver
Reply With Quote #2

Code:
#include <amxmodx> #include <hamsandwich> #include <fun> #include <cstrike> #define VERSION "0.0.1" #define PLUGIN "Nade Giver" public plugin_init() {     register_plugin(PLUGIN, VERSION, "ConnorMcLeod")     RegisterHam(Ham_Spawn, "player", "CBasePlayer_Spawn_Post", true) } public CBasePlayer_Spawn_Post( id ) {     if( is_user_alive(id) )     {         give_item(id, "weapon_hegrenade")         give_item(id, "weapon_flashbang")         give_item(id, "weapon_smokegrenade")         cs_set_user_bpammo(id, CSW_HEGRENADE, 1)         cs_set_user_bpammo(id, CSW_FLASHBANG, 2)         cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 1)     } }
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-07-2011 at 03:15.
ConnorMcLeod is offline