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

Simple Plugin (probaly can be coded quick)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Caesar
BANNED
Join Date: Nov 2004
Old 01-04-2006 , 19:18   Simple Plugin (probaly can be coded quick)
Reply With Quote #1

Okay I'm not much of a coder, and I would like a simple plugin from one of yall.

What I want is something that registers the player's name to have "#otcclan.net" in it it, so it will give them the flag "O"

Thanks!!!
Caesar is offline
Jordan
Veteran Member
Join Date: Aug 2005
Old 01-04-2006 , 19:23  
Reply With Quote #2

Wait you want to add every player's name with #otcclan.net and then give everyone the O flag, or just take people to whose name has that and then give that person the O flag?
Jordan is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 01-04-2006 , 19:49  
Reply With Quote #3

Quote:
Originally Posted by satanwoj
Wait you want to add every player's name with #otcclan.net and then give everyone the O flag, or just take people to whose name has that and then give that person the O flag?
The latter.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Jordan
Veteran Member
Join Date: Aug 2005
Old 01-04-2006 , 22:56  
Reply With Quote #4

This should work - let me know if it doesn't:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Custom" #define VERSION "1.0" #define AUTHOR "SatanWoJ" new name[32] public plugin_init() {     register_plugin("Custom", "1.0", "SatanWoJ") } public client_putinserver(id){     set_task(1.0, "enter", id) } public enter(id) {     get_user_name(id, name, 31)     if(equal(name, "#otcclan.net", 12))     {         set_user_flags (id, 16384, 0)         return PLUGIN_CONTINUE     }     return PLUGIN_HANDLED }
Jordan is offline
Caesar
BANNED
Join Date: Nov 2004
Old 01-05-2006 , 18:27  
Reply With Quote #5

Thankyou! I am testing right now!
Caesar is offline
Caesar
BANNED
Join Date: Nov 2004
Old 01-05-2006 , 21:07  
Reply With Quote #6

OKay It is working there is one problem though. I thoguth I could do this myself but obiously I can't

What I am trying to do is make it so that bunnyhop can only be accessed by certain flags (flag_0) how would I add this in the .sma


Thanks!!!,


Caesar
Caesar is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 01-05-2006 , 21:28  
Reply With Quote #7

Do you have a bunny hop plugin?

If so please post it or a link to it.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 01-06-2006 , 11:20  
Reply With Quote #8

Here is the link, too lazy to do it myself :

http://forums.alliedmods.net/showthread.php?t=1262+hop
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-06-2006 , 12:43  
Reply With Quote #9

There is no need for another plugin for this, just add this to your users.ini:

Code:
"#otcclan.net" "" "o" "be"
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Caesar
BANNED
Join Date: Nov 2004
Old 01-06-2006 , 18:11  
Reply With Quote #10

Oh but I still need to know how to edit the bunny hop plugin so that it will only allow people to bunny hope with the flag O

Thanks for the help so far guys!!
Caesar 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 10:13.


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