PHP Code:
public client_PreThink(id)
{
if(is_user_connected( id ) && is_user_alive( id ))
{
if( pev(id, pev_button) & IN_DUCK )
{
client_print(id, print_chat, "Duck")
}
else
{
client_print(id, print_chat, "Stand")
}
}
}
When I crouched, it worked well and print the "Duck" well. But when I didn't stand, the client_print flood. Did it use CPU process highly? Or is there any good method? I'm afraid it'll make the CS lag.