Raised This Month: $51 Target: $400
 12% 

client_print_color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
clsay
New Member
Join Date: Jul 2022
Old 07-02-2022 , 08:25   client_print_color
Reply With Quote #1

Hello first of all When I click mouse2, a lot of text appears in the chat, I want it to appear only once, can anyone help me?
This code;
PHP Code:
public client_PreThink(id)
{
    if (!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;
 
    if (
pev(idpev_button) & IN_ATTACK2)
    {
        if (
get_gametime() - gLastUseCmd[id] < 15.0)
        {
            
client_print_color(id0"Wait %0.f seconds."15.0 - (get_gametime() - gLastUseCmd[id]))
            return 
PLUGIN_HANDLED;
        }
        
        
gLastUseCmd[id] = get_gametime()
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

clsay is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-02-2022 , 08:55   Re: client_print_color
Reply With Quote #2

Code:
if (!(pev(id, pev_oldbuttons) & IN_ATTACK2) && (pev(id, pev_button) & IN_ATTACK2))
__________________








CrazY. is offline
clsay
New Member
Join Date: Jul 2022
Old 07-02-2022 , 09:16   Re: client_print_color
Reply With Quote #3

Quote:
Originally Posted by CrazY. View Post
Code:
if (!(pev(id, pev_oldbuttons) & IN_ATTACK2) && (pev(id, pev_button) & IN_ATTACK2))
Wow really worked thank you dude
clsay is offline
Reply



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 02:35.


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