Raised This Month: $ Target: $400
 0% 

client "get cvar" not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
firewall
Member
Join Date: Jun 2006
Old 10-07-2006 , 16:12   client "get cvar" not working
Reply With Quote #1

i'm tring to get some of the client cvars but not seem to be working.here is the code :
Code:
  #include <amxmodx>
#include <engine>
#include <amxmisc>

public plugin_init() {

    register_plugin("Cvar Client", "1", "Me")
    }

public client_connect(id)

{

    query_client_cvar(id,"max_shells","result1")
    query_client_cvar(id,"fps_max","result2")
    query_client_cvar(id,"cl_updaterate","result3")
}



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

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s maxshells is ^"%s^"", id, name, value)
}

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

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s max fps is ^"%s^"", id, name, value)
}
public result3(id, const cvar[], const value[]){

    new name[32]
    get_user_name(id, name, 31)

    log_amx("Client %d(%s)'s updaterate is ^"%s^"", id, name, value)
}
i do not understand whereis is the problem i do not have anything logged i enable debugging but no errors .

Last edited by firewall; 10-07-2006 at 16:14.
firewall is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-07-2006 , 16:40   Re: client "get cvar" not working
Reply With Quote #2

The forward client_connect is too early. Use client_putinserver
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
firewall
Member
Join Date: Jun 2006
Old 10-07-2006 , 16:49   Re: client "get cvar" not working
Reply With Quote #3

same thing
firewall is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-08-2006 , 00:44   Re: client "get cvar" not working
Reply With Quote #4

use ResetHUD and u don't need engine u could just use get_user_info..
k007 is offline
Send a message via MSN to k007
Reply


Thread Tools
Display Modes

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 04:59.


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