Raised This Month: $ Target: $400
 0% 

How to register a CVAR?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-25-2011 , 14:38   How to register a CVAR?
Reply With Quote #1

I want to register a CVAR that it'll call a function at some point of the code according to what the cvar is (for example if amx_cvar kill_admin will be on '1') when its time for a function in the order of a code i made, the function that kills all admins will be called, if its on '0' it wont be called when it gets to the function.

NOTE: I want it to be permanent, like all those CVARS that never change even when u do map change.
Diegorkable 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 01:09.


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