Raised This Month: $ Target: $400
 0% 

Cvars Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 12-19-2015 , 11:44   Cvars Help
Reply With Quote #1

How to change value of of client_print by a cvar i mean suppose i want to register a cvar to change the value in client_print how to do that ?

Eg : client_print(id,"here is d custom cvar")

i wan to change "here is d custom cvar" with cvar value
Awesome_man is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-19-2015 , 11:48   Re: Cvars Help
Reply With Quote #2

PHP Code:
new g_pChatMsg;

g_pChatMsg register_cvar"chatmsg" "I like to eat food when I'm humgry" );

new 
szMsg64 ];
get_pcvar_stringg_pChatMsg szMsg charsmaxszMsg ) );
client_printid print_chat "cvar says %s" szMsg ); 
__________________
Bugsy is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 12-19-2015 , 12:02   Re: Cvars Help
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
PHP Code:
new g_pChatMsg;

g_pChatMsg register_cvar"chatmsg" "I like to eat food when I'm humgry" );

new 
szMsg64 ];
get_pcvar_stringg_pChatMsg szMsg charsmaxszMsg ) );
client_printid print_chat "cvar says %s" szMsg ); 
thnx man
Awesome_man 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 18:16.


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