Hello to everyone who is willing to help me solve this thingy.
Code:
public event_weap_pick_up(id)
{
if( !is_user_connected(id) || !is_user_alive(id) || !get_cvar_num("amx_vipscript") )
return PLUGIN_CONTINUE;
if( read_data(1) != CSW_AWP || Awp_User[id] )
return PLUGIN_CONTINUE;
set_task(0.1, "drop_awp", id);
client_print(id, print_chat, "Bla bla la la");
return PLUGIN_CONTINUE;
}
The problem is I cannot figure out how to add extra check for other weapons into this code. I want it to check not only for CSW_AWP but also for CSW_G3SG1 and CSW_SG550.
For some reason it does not work like that
Code:
if( read_data(1) != CSW_AWP || CSW_G3SG1 || CSW_SG5500 || Awp_User[id] )
Cheers.