I need some help. I want to generate some smoke from all alive players
I made:
PHP Code:
public plugin_init() {
register_plugin("ShNS", "1.0", "Hip_hop_x")
register_logevent("new_round", 2, "1=Round_Start")
}
public new_round(id) {
new smoke
smoke = precache_model("sprites/steam1.spr")
if(is_user_alive(id)) {
if(get_cvar_num("sv_nadetail"))
{
new origin[3]
new mata
mata = get_user_origin(id, origin, 2)
message_begin(MSG_ALL ,SVC_TEMPENTITY)
write_byte( TE_SMOKE )
write_coord(mata)
write_coord(mata)
write_coord(mata)
write_short(smoke)
write_byte( 50 ) // scale in 0.1's
write_byte( 10 ) // framerate
message_end()
}
}
else {
return PLUGIN_CONTINUE
} return PLUGIN_HANDLED
}
How should I set the smoke to all alive players? And how to fix the warnings? Can you help me?