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

name restriction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karma man
Junior Member
Join Date: Nov 2005
Old 11-16-2005 , 08:14   name restriction
Reply With Quote #1

is posible to make plugin restriction for name i mean make plogin for admin only with exactly one name and in this plugin can i set gravity and another settings automatically for example ... thx for reply
karma man is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 11-16-2005 , 08:36   Re: name restriction
Reply With Quote #2

Quote:
Originally Posted by karma man
is posible to make plugin restriction for name i mean make plogin for admin only with exactly one name and in this plugin can i set gravity and another settings automatically for example ... thx for reply
This will stop anyone from changing thier name to What you define as ADMIN_NAME.
Code:
#include <AMXMODX> #include <AMXMISC> #include <FUN> // Restricted Name #define ADMIN_NAME "Put Your name in the quotes" #define PLUGIN "AMXX Name Checker" #define VERSION "1.0.BETA" #define AUTHOR "Charr" public plugin_init()     register_plugin(PLUGIN,VERSION,AUTHOR) public client_infochanged(id) {     new name[32],olname[32]     get_user_info(id,"name",name,31)     get_user_name(id,oldname,31)     if(equal(name,ADMIN_NAME))         return PLUGIN_HANDLED     else         return PLUGIN_CONTINUE }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
karma man
Junior Member
Join Date: Nov 2005
Old 11-16-2005 , 09:52  
Reply With Quote #3

thx
karma man is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-16-2005 , 13:51  
Reply With Quote #4

Actually, it won't. The llama plugin changes your name to Llama, and on infochanged it resets it back. However, if you use the command "setinfo name newname" then your name is changed and infochanged is never called. The only drawback is that the admins tend to forget you are llamaed.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
cTn
Senior Member
Join Date: Oct 2005
Old 11-16-2005 , 14:56  
Reply With Quote #5

Charr this plugin not work cant compile it.. pls fix it
__________________
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 11-16-2005 , 15:03  
Reply With Quote #6

What are the errors? I can't get to a compiler until friday.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
cTn
Senior Member
Join Date: Oct 2005
Old 11-16-2005 , 15:17  
Reply With Quote #7

// C:\Program Files\Amxx studio\Untitled.sma(24) : warning 209: function "client_infochanged" should return a value

i before must fixed the oldname error with olname .. i thinku can see it in ypu previous post...
__________________
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 11-16-2005 , 15:29  
Reply With Quote #8

Code:
#include <AMXMODX> #include <AMXMISC> // Restricted Name #define ADMIN_NAME "Put Your name in the quotes" #define PLUGIN "AMXX Name Checker" #define VERSION "1.0.BETA" #define AUTHOR "Charr" public plugin_init()     register_plugin(PLUGIN,VERSION,AUTHOR) public client_infochanged(id) {     new name[32],olname[32]     get_user_info(id,"name",name,31)     get_user_name(id,oldname,31)     if(equal(name,ADMIN_NAME))         return PLUGIN_HANDLED     else         return PLUGIN_CONTINUE     return }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-16-2005 , 15:55  
Reply With Quote #9

Code:
#include <amxmodx> #include <amxmisc> // Restricted Name #define ADMIN_NAME "Put Your name in the quotes" #define PLUGIN  "AMXX Name Checker" #define VERSION "1.0.BETA" #define AUTHOR  "Charr" public plugin_init() {     register_plugin(PLUGIN,VERSION,AUTHOR) } public client_infochanged(id) {     new name[32], oldname[32]     get_user_info(id, "name", name, 31)     get_user_name(id, oldname, 31)     if (equal(name, ADMIN_NAME)) return PLUGIN_HANDLED     return PLUGIN_CONTINUE }
Brad is offline
cTn
Senior Member
Join Date: Oct 2005
Old 11-16-2005 , 16:43  
Reply With Quote #10

thx Charr thx Brad
__________________
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
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 10:07.


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