How would I pass a targetid and id using set_task or a different way
PHP Code:
public item_carbomb(){
new arg[33], carid, car, id, Float:origin[3], tauthid[64], ent, tid
read_argv(1,arg,32)
id = str_to_num(arg)
ent = entity_get_vector(id,EV_VEC_origin,origin);
tid = get_id_by_steamid(tauthid)
get_user_aiming(id,carid,car,100)
if(carid == ent)
{
client_print(id,print_chat,"[CarMod] You're setting up the bomb....")
setbomb(id,tid)
return PLUGIN_HANDLED
}
else
{
client_print(id,print_chat,"[CarMod] You need to be near a car.")
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public setbomb(id,tid)
{
client_print(id,print_chat,"[CarMod] You set up the bomb!")
hasbomb[tid] += 1
return PLUGIN_HANDLED
}
I want it to wait like 10 seconds before it sets up the bomb.