Raised This Month: $ Target: $400
 0% 

New cvar


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-24-2013 , 16:00   Re: New cvar
Reply With Quote #2

Nope
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 10-24-2013 , 16:24   Re: New cvar
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Nope
And if i create the cvar manually ??
The query_client_cvar dont check him ??
pepe_thugs is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-24-2013 , 16:39   Re: New cvar
Reply With Quote #4

You cannot create cvars on the client at all
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-25-2013 , 12:57   Re: New cvar
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?t=154538
__________________
Black Rose is offline
Old 10-26-2013, 05:31
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: posted for postCount
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 23:22.


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