I Creat This For You
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define ADMIN_ACCES ADMIN_KICK // "c"
#define VIP_ACCES ADMIN_LEVEL_H // "t"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "fw_spawn_post", 1)
}
public fw_spawn_post(id)
{
/*------| Weapons M4a1 |-------------*/
give_item(id, "weapon_m4a1")
cs_set_user_bpammo( id, CSW_M4A1, 100)
/*------| Weapons deagle |-------------*/
give_item(id, "weapon_deagle")
cs_set_user_bpammo( id, CSW_DEAGLE, 100)
/*------| Freez Grenade |-------------*/
give_item (id,"weapon_smokegrenade")
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, cs_get_user_bpammo(id, CSW_SMOKEGRENADE) + 1)
/*------| Admin Spawn |---------------*/
Admin_Spawn(id)
/*------| ViP Spawn |-----------------*/
ViP_Spawn(id)
}
public Admin_Spawn(id){
if( get_user_flags(id) & ADMIN_ACCES)
{
give_item (id,"weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, cs_get_user_bpammo(id, CSW_HEGRENADE) + 1)
}
}
public ViP_Spawn(id){
if( get_user_flags(id) & VIP_ACCES)
{
give_item (id,"weapon_hegrenade")
cs_set_user_bpammo(id, CSW_HEGRENADE, cs_get_user_bpammo(id, CSW_HEGRENADE) + 1)
}
}
__________________