Code:
public plugin_init() {
register_plugin("armor_load", "0.1", "+ARUKARI-")
register_event("ResetHUD","arm_load","b")
}
public arm_load(id){
if(is_user_connected(id)){
set_task(0.2,"arm_load2",id)
}
}
public arm_load2(id){
if(is_user_alive(id)){
cs_set_user_armor(id,300,CS_ARMOR_VESTHELM)
}
}
When it played by this code, the following error message came out.
Invalid message; cannnot use broadcast message with a target entity.
And, when they are two people, this error appears alone can problem use.
It hopes for the modification.
__________________