There is a glitch where if you type in amx_awpme and you have the bomb it will take away your bomb. Or if you have a kit it will take away your kit.
Is someone could please excempt those two items from being removed when checking for guns.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "give awp"
#define VERSION "1.0"
#define AUTHOR "Reaper2331"
#define AMX_ADMIN_FLAG ADMIN_VOTE
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_awpme","checkGuns",AMX_ADMIN_FLAG,"- Gives Admins with Flag J an Awp")
}
public checkGuns(id, level, cid)
{
if( !cmd_access( id, level, cid, 1 ) )
return PLUGIN_HANDLED
if (is_user_alive(id) )
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
give_item(id,"weapon_awp")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_smokegrenade")
give_item(id,"weapon_flashbang")
give_item(id,"weapon_flashbang")
client_print(id, print_chat, "[AMXX] You Now Have An Awp Enjoy")
}
return PLUGIN_CONTINUE
}
__________________