Raised This Month: $ Target: $400
 0% 

pev_button


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 06-09-2013 , 08:50   pev_button
Reply With Quote #1

PHP Code:
public client_PreThink(id)
{
    if(
is_user_connectedid ) && is_user_aliveid ))
    {
        if( 
pev(idpev_button) & IN_DUCK )
        {
            
client_print(idprint_chat"Duck")
            
        }
        else
        {
            
client_print(idprint_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.
Randomize is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode