Raised This Month: $12 Target: $400
 3% 

1 question about CVARS


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Deepcho
Junior Member
Join Date: May 2006
Old 06-04-2006 , 14:46   1 question about CVARS
#1

Where i can put cvars code ???

Example of CVAR Code
Code:
Cvars: 
Values for punish cvars are as follows: 
-0 - Do not change their name but warn and kick them 
-1 - Change their name to a specific name (Registered_Name, Blocked_Name, etc.) then warn and kick them 
-2 - Change their name to a random name in punishname.txt then warn them 
-3 - Change their name to a random name in punishname.txt then warn and kick them 
-4 - Change their name to one of their own registered names and tell them what happened (if they don't have one this is treated as a 0) 
Note: Of course, turning the requirement to register on and setting the punish level at 4 is pointless, so it is not included. 
-amx_minnamelen (default 4) - Set minimum name length for players. 
-amx_namelenpunish (default 0) - Set punishment for having too short of a name.
?? Please help me

PS: In the example .. the code is not for heroe (it's plugin)
Deepcho is offline
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 06-04-2006 , 15:54  
#2

Well, if you are talking about Hero CVARS put them into shconfig.cfg the rest into amxx.cfg
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
Deepcho
Junior Member
Join Date: May 2006
Old 06-06-2006 , 07:18  
#3

hm.. here is the code:

Code:
This plugin allows you to do many things with names, including register, unregister, block from use, block phrases from use, force registration, force usage of registered names, enforce minimum name lengths and disallow peoples' names to contain each other. 

This plugin will work with SQL or files by define (check the list of defines) and will also work with LAN or internet (automatically detected each time a command is used). 

Admin Commands: 
All admin commands have definable access level. 
-blockname <name> - Block a name from being used. 
-bname <name> - Same as blockname. 
-blocklist - Display a list of blocked names. 
-blist - Same as block list 
-removename <name> - Remove all restrictions on a name. 
-remname <name> - Same as removename. 
-pblockname <name> - Block a phrase from use in a name. 
-pblock <name> - Same as pblockname. 

Commands: 
All commands restrictable by define. 
-registername - Register your current name. 
-regname - Same as registername. 
-unregistername - Unregister your current name. 
-uregname - Same as unregistername. 
-listnames - Display a list of your registered names. 
-lnames - Same as listnames. 

Cvars: 
Values for punish cvars are as follows: 
-0 - Do not change their name but warn and kick them 
-1 - Change their name to a specific name (Registered_Name, Blocked_Name, etc.) then warn and kick them 
-2 - Change their name to a random name in punishname.txt then warn them 
-3 - Change their name to a random name in punishname.txt then warn and kick them 
-4 - Change their name to one of their own registered names and tell them what happened (if they don't have one this is treated as a 0) 
Note: Of course, turning the requirement to register on and setting the punish level at 4 is pointless, so it is not included. 
-amx_minnamelen (default 4) - Set minimum name length for players. 
-amx_namelenpunish (default 0) - Set punishment for having too short of a name. 
-amx_containname (default 1) - Set check to see if one player's name contains another's. 
-amx_containpunish (default 0) - Set punishment for having a name contained or containing another player's name. 
-amx_pblockpunish (default 0) - Set punishment for using a name which contains a phrase that has been blocked. 
-amx_regpunish (default 0) - Set punishment for using someone else's registered name. 
-amx_forcereg (default 0) - Force users to have a name registered? 0 = No | 1 = Yes 
-amx_notregpunish (default 0) - Set punishment for not having a registered name (if amx_forcereg is 1) 
-amx_forceuse (defualt 0) - Force people with registered names to use one of them. 
-amx_maxregnames (default 5) - Set the maximum amount of names a player can register. 
-amx_allowreg (default 1) - Set whether or not only admins can register. 0 = Admins only | 1 = Everyone can register 
-amx_viciouswait (default 0; in seconds) - How long to wait for a player to spawn to change their name. If they don't spawn in time they will be spawned, have their name changed then slayed by the plugin (without affecting their score) 


Defines: 
-SQLON (default 0) - 0 = Use file | 1 = Use SQL 

-REG_ACCESS (default ADMIN_USER) - Set access required to register a name. 
-UNREG_ACCESS (default ADMIN_USER) - Set access required to unregister a name. 
-REM_NAME_ACCESS (default ADMIN_KICK) - Set access required to remove restrictions on a name. 
-BLOCK_ACCESS (default ADMIN_KICK) - Set access required to block a name from use. 
-P_BLOCK_ACCESS (default ADMIN_KICK) - Set access required to block a phrase from use in names. 
-BLOCK_LIST_ACCESS (default ADMIN_CHAT) - Set access required to view all blocks and phrase blocks. 
-LIST_NAMES_ACCESS (default ADMIN_USER) - Set access required to view all your registered names. 

Please notice that the plugin file name has changed from previous versions. 

-How do I add punishnames to SQL? 
You will need to insert new values into the table in this format: "name" "type" 
(Type = s for short | c = name containment | p = phrase blocked | b = blocked name | r = already registered name | n = not registered)
where put this all code ???
Deepcho is offline
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 06-06-2006 , 07:34  
#4

That is no code, it explains the existing CVARS!
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
Deepcho
Junior Member
Join Date: May 2006
Old 06-06-2006 , 07:38  
#5

Quote:
Originally Posted by lumbsta
That is no code, it explains the existing CVARS!

okey.. but where can i put them ??

i need this plugin.....
Deepcho is offline
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 06-06-2006 , 09:43  
#6

Is it a name registration plugin? Browse the amxmodx.org plugin list!
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
The_One
Senior Member
Join Date: Jul 2005
Old 06-06-2006 , 11:58  
#7

erm \addons\amxmodx\configs\amxx.cfg?
__________________
[img]http://img106.**************/img106/970/spidermancopy5yf.gif[/img]
The_One is offline
imported_RaiN
Member
Join Date: Jul 2005
Old 06-06-2006 , 18:40  
#8

Hero cvars belong in the shconfig.cfg .... open it using notepad.
__________________
imported_RaiN is offline
Send a message via AIM to imported_RaiN
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-06-2006 , 20:44  
#9

www.amxmodx.org
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Closed Thread



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 19:30.


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