Raised This Month: $ Target: $400
 0% 

How to set 2 options in 1 function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 06-01-2010 , 22:47   Re: How to set 2 options in 1 function
Reply With Quote #1

Whit
PHP Code:
read_argv() 
You can read the parameters that a player writes on their console..
The first parameter:
PHP Code:
(1, ...) 
means the number of parameter that you read. (0 = command)


But, i think that he want to know how to put off or on a plugin with a cvar.

You have to ask in each function if the cvar is 1 or 0.
PHP Code:
if (!get_pcvar_num(yourcvar)) // If cvar is "0"
     
return PLUGIN_HANDLED // You "exit" the plugin
//Else, the plugin continues 
Mxnn 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 05:17.


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