Raised This Month: $ Target: $400
 0% 

DEFINE Code in client_cmd command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 08-03-2010 , 17:02   DEFINE Code in client_cmd command
Reply With Quote #1

hey, how could I input an DEFINED name in client_cmd command. I've got alot of client_cmd commands with same functions in it, so not to change them every time I decided to make an DEFINE
PHP Code:
#define COLOR "255 255 255"

client_cmd(id"cl_crosshair_color <<<DEFINED COLOR HERE>>> "
Don't say just write an define with cl_crosshair_color, because I don't want to :p

EDIT: or should I do like:

PHP Code:
client_cmd(id"cl_crosshair_color %i"COLOR

Last edited by reinert; 08-03-2010 at 17:04.
reinert 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 00:10.


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