Raised This Month: $ Target: $400
 0% 

New cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 10-24-2013 , 15:05   New cvar
Reply With Quote #1

Hello guys.
It is possible to create one new cvar in client (ex: abc_cvar) and check the value and do something ?

I try this:

PHP Code:
public client_connect(id){

    if (!
is_user_bot(id))
        
query_client_cvar(id"abc_cvar""cvar_result_func");


public 
cvar_result_func(id, const cvar[], const value[]){

    new 
name[32];
    
get_user_name(idname31);
    
    new 
fValue str_to_num(value)

    if (
fValue 1)
    {
        
log_amx("Client %d(%s) connect with abc_cvar ^"%s^""idnamevalue);
        
//do something
    
}

pepe_thugs 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 23:22.


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