PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_clcmd("say /deagle", "weapon");
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public weapon(id)
{
if(is_user_alive(id))
{
strip_user_weapons(id)
give_item( id, "weapon_knife" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo(id, CSW_DEAGLE, 200);
set_user_health (id, 150);
client_print(id, print_chat, "You got a deagle and 150 hp");
}
}
public fwHamPlayerSpawnPost(id)
{
if (is_user_alive(id))
give_item( id, "weapon_awp")
}
__________________