Raised This Month: $ Target: $400
 0% 

HS only script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarlD
Senior Member
Join Date: Aug 2004
Old 10-19-2005 , 15:33  
Reply With Quote #1

So if i type ma_hsonly 1 in console it will enable it? and if i type ma_hsonly 0 it will disable it?

Code:
register_concmd("ma_hsonly","hs_only",ADMIN_KICK,"enable hs only") register_cvar("hs_only","0"); public hs_only(id,level,cid) {     if(!cmd_access(id,level,cid,2))         return PLUGIN_HANDLED     new arg[12];     read_argv(1,arg,11);     if(str_to_num(arg) > 0)     {         client_print(0,print_chat,"Meta-Addons: HS ONLY MODE ENABLED FOR THIS ROUND")         set_user_hitzones(0,0,2)     }     else     {         client_print(0,print_chat,"Meta-Addons: HS ONLY MODE DISABLED FOR THIS ROUND")         set_user_hitzones(0,0,255) //this is how you set the hitzones back to normal     }     return PLUGIN_CONTINUE }
__________________
DarlD is offline
Send a message via MSN to DarlD
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 23:37.


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