Code:
public adminsick(id){
new arg[33], arg2[33], name, sickness[33]
read_argv(1,arg,32)
read_argv(2,arg2,32)
name = str_to_num(arg)
sickness = str_to_num(arg2)
get_user_name(id,name,32)
if(!is_user_alive(name)) return PLUGIN_HANDLED
if(is_user_connected(name)) return PLUGIN_HANDLED
if(sickness[id] == cold){
has_cold[name] = true
client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)
}
if(sickness[id] == flu){
has_flu[name] = true
client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)
}
if(sickness[id] == headache){
has_headache[name] = true
client_print(id,print_chat,"[RealMod] You gave %s a %s",name,sickness)
}
return PLUGIN_HANDLED
}
You forgot to make variable sickness an array :/
__________________