Cvar by Strings (Or Flags)
I Want to make a cvar ussing...
Example. PHP Code:
if you don't understand what i mean,please tell me. Other thing How i can detect if a string is a number,if is not,block them? And... How i can set a random model when i use cs_set_user_team(id,CS_TEAM_CT,----)? |
Re: Cvar by Strings (Or Flags)
Maybe this will help ?
PHP Code:
|
Re: Cvar by Strings (Or Flags)
Yes,i think,i need to make a enum with the CTS models?,because in the cstrike.inc
the models are all in one enum |
Re: Cvar by Strings (Or Flags)
Maybe something like this help.
PHP Code:
|
Re: Cvar by Strings (Or Flags)
I don't think so
|
Re: Cvar by Strings (Or Flags)
Why do you want to have a + in the flags? Why not just use a list of flags like used for admin flags. You can then use read_flags and bit flags for each option.
|
Re: Cvar by Strings (Or Flags)
PHP Code:
|
Re: Cvar by Strings (Or Flags)
Quote:
Quote:
btw Thanks! |
Re: Cvar by Strings (Or Flags)
PHP Code:
|
Re: Cvar by Strings (Or Flags)
Using bit flags would be cheaper.
PHP Code:
|
All times are GMT -4. The time now is 16:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.