weapon is data 2.
This will check if player pick up one of the 3 awps
PHP Code:
#define WEAPONS_TO_CHECK_BITSUM (1<<CSW_AWP)|(1<<CSW_G3SG1)|(1<<CSW_SG550)
public event_weap_pick_up(id) {
if( !is_user_connected(id) || !is_user_alive(id) || !get_cvar_num("amx_vipscript") )
return
if( !( WEAPONS_TO_CHECK_BITSUM & (1<<read_data(2)) ) || Awp_User[id] )
return
set_task(0.1, "drop_awp", id)
client_print(id, print_chat, "Bla bla la la")
}
__________________