Admin Prefixes V4.0 by m0skVi4a ;]
8 Attachment(s)
Plugin Name: Admin Prefixes
Plugin Author: m0skVi4a ;] Plugin Version: 4.0 Modification: Counter - Strike Category: Fun Stuff Description: With this plugin you can set prefixes to Admins with special flags. Also Admins can put custom prefixes to them or to other players if they want, but only if they have the required flag. Pictures: http://i48.tinypic.com/a3o66u.png Commands: Commands: say /prefix Toggles Prefix ON or OFF. say_team /prefix Toggles Prefix ON or OFF. ap_reload_prefixes Reloads Prefixes' file from console without restarting the server. ap_reload_badprefixes Reloads Bad Prefixes' file from console without restarting the server. ap_put "type (f, i, s, n)" "key(Flag, IP, SteamID, name)" "Prefix" Puts prefix to the key you type if you have the special flag. Or if there is no prefix typed, removes the prefix which the player has. CVARS: Code:
"ap_bad_prefixes" - Is the Bad Prefixes option on(1) or off(0). Default: 1 Credits: m0skVi4a ;] - for the idea, making and testing the plugin SpeeDeeR - for little help with the plugin Ant1Lamer - for testing the plugin Vasilii-Zaicev - for testing the plugin Changelog: Code:
April 22, 2012 - V1.0: Moduls: PHP Code:
Libraries: PHP Code:
Installation 1. Compile the plugin 2. .amxx file goes to plugins dir 3. admin_prefixes.txt goes to data/lang dir 4. ap_prefixes.ini and ap_bad_prefixes.ini go to configs dir and customize them. 5. Add the name of the .amxx file in plugins.ini and start your server How to set up ap_prefixes.ini - When adding new prefix, you should conform that you must set the type of the prefix. There are 4 types: type Flag, type IP, type SteamID and type Name, each begins with the character "f", "i", "s" и "n" accordingly. Here are some examples: "f" "n" "[PREFIX FLAG]" - this way person with Flag n will have prefix [PREFIX FLAG] "i" "192.168.1.100" "[PREFIX IP]" - this way person with IP 192.168.1.100 will have prefix [PREFIX IP] "s" "STEAM_0:1:52985922" "[PREFIX STEAMID]" - this way person with Name m0skVi4a ;] will have prefix [PREFIX NAME] "n" "m0skVi4a ;]" "[PREFIX NAME]" - this way person with Name m0skVi4a ;] will have prefix [PREFIX NAME] - If you want to edit who can use the reload command for the plugin's file, open the .sma file and find PHP Code:
- If you want to edit how many prefixes can be loaded, open the .sma file and find PHP Code:
- If you want the prefix to be coloured, use !g for green, !t for team and !n for noramal colour (It DOES NOT works and with the commands ap_put and ap_put_player) How to set up ap_bad_prefixes.ini - If you want to add new Bad Prefix, just write each prefix on new line. Here is an example: "[OWNER]" "[BOSS]" "[PROSTAK]" "[IDIOT]" - that way people who can set Custom Prefixes, can not set these. - If you want to edit who can use the reload command for the plugin's file, open the .sma file and find PHP Code:
- If you want to edit how many prefixes can be loaded, open the .sma file and find PHP Code:
This plugin is tested by me, m0skVi4a ;] , on AMX MOD X 1.8.2 and it works properly!!! |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
nice plugin i well try it
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Isn't this already made?
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
gj
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Quote:
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
I installed but, it gave bad_load error ? Help pls
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Quote:
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Thanks, I solved the problem. cstrike module was missing. I installed the module and it worked.
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
#if defined USE_SQL
#include <sqlx> #endif Would be better! |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
How about ML support?
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
@bazhenov93
@shadybg I will think for thise suggestions :) |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
hey guys, i tried this plugin at my server, and it works awesome! plugin is great.
I just have one problem. Im not a good in this kind of programing, so i need some help. I've set admin prefix on d flag, bcus only admins have it. So when admin say something it looks like this: [Admin] puRpl' haZe!: Hello! - the trick is here, text of admin message is set to be green by default. So i would like to change it, to be normal color, like default chat of players. Please, can anyone tell me how to do this? So, once more, prefix [Admin] should still be green, but i want text to be normal color. Thanks in advance! |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
formatex(g_message, charsmax(g_message), "^4%s^3 %s :^4 %s", client_prefix[id], g_name, g_typed)
---> formatex(g_message, charsmax(g_message), "^4%s^3 %s :^1 %s", client_prefix[id], g_name, g_typed) Difference: :^4 %s -> :^1 %s ^4 - green ^3 - team ^1 - normal |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
I think it would be better that if players can custom their own prefix.
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Quote:
In admin_prefixes.ini CUSTOM_CURRENT z |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Thank you very much!
Ok here is one more problem. On my server it is like this: head admin - abcdefghijklmnopqrstux adv admin - abcdefgijkmnopqrstu admin - abcdeimnopqrstu trial admin - bcdeiu members - b players - z So, now i want to make like this: [head admin] - for head admins [adv admin] - for adv admins [admin] - for admins and trial admins [z-hq] - for members But i have a conflict between flags. If i make b flag to be [z-hq], than all other admins have prefix [z-hq] bcus they have b flag. same problem for the rest of list. Can i solve this issue somehow? |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
You don't have to put all of the flags..
Only one is needed |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Great work.Will test it today!
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
I downloaded the plugin, however I do not see the .amxx file? Only sma & cfg What Am I doing wrong? :-/
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Attaching .amxx files here is forbidden :D
Compile localy or here http://www.amxmodx.org/webcompiler.cgi |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Wouldn't this be easier?
PHP Code:
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Quote:
Got it. Thank you |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
@bLacK-bLooD The idea of this plugin is not to be edited if you want to add more prefixes.
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
Quote:
|
Re: Admin Prefixes V1.0 by m0skVi4a ;]
In my users.ini i have the flags "abcdefghijklmnopqrstu" for head admins and "t" for vips.
But when i enter my server as head admin,it recognises me as a vip,because the flag "t" is also in the head admins,not only in vip. Is there any way to solve this flag conflict or the plugin is useless? |
Re: Admin Prefixes V1.0 by m0skVi4a ;]
"[HEAD ADMIN]" "o"
"[VIP]" "t" This in admin_prefixes.ini |
Re: Admin Prefixes V2.0 by m0skVi4a ;]
Update :)
See changelog! |
Re: Admin Prefixes V2.0 by m0skVi4a ;]
I have not understood what is mean of bad prefix ?
And here: Turkish Translate Code:
[tr] |
Re: Admin Prefixes V2.0 by m0skVi4a ;]
He meant that players and admins cant put themselves prefixes that will be in your cfg file
Moskvi4ka thank you!Great on, like your works :) |
Re: Admin Prefixes V2.1 by m0skVi4a ;]
Update! See changelog
Added White Chat Support. Just compile AdminPrefixes_WHITE_CHAT |
Re: Admin Prefixes V2.1 by m0skVi4a ;]
Good plugin but there is many plugins like it ... and maby better!
|
Re: Admin Prefixes V2.1 by m0skVi4a ;]
I'm using the AdminPrefixes_WHITE_CHAT
I can see the ext white which is good. but players see what I write in team color. So, pretty much I'm the only one who can see it white. Same thing happen with admins, they can see what they write in white. but for everyone else shows up on team color. Any way to fix this? so everyone will see the white text? Thanks in advance. |
Re: Admin Prefixes V2.1 by m0skVi4a ;]
Quote:
Updated. See changelog. |
Re: Admin Prefixes V2.2 by m0skVi4a ;]
I have been looking for this kinda plugins thanks :)
|
Re: Admin Prefixes V2.2 by m0skVi4a ;]
It's badly coded, take a look here: http://forums.alliedmods.net/showthread.php?p=752407
Why do you return PLUGIN_HANDLED on say command? |
Re: Admin Prefixes V2.2 by m0skVi4a ;]
Thank you for your effort and for sharing this plugin m0skVi4a, almost everything works fine for me.Donīt know if itīs a bug of the plugin but this plugin along with the sank sounds plugin as issues.The problem is that my Sank Sounds plugin is configured not to show the words I type in chat for playing the sound, for instance, if I write duck1 on chat it starts playing the sound asssociated to the word "duck1" but it doesnīt show on chat the word duck1.
After instaling this plugin it always shows what I type to play sounds.Is it possible to correct this? Thank you very much. |
Re: Admin Prefixes V2.2 by m0skVi4a ;]
"ap_say_characters" - Is the Start Say Characters option on(1) or off(0). Default: 1
Edit this to add more. PHP Code:
|
Re: Admin Prefixes V3.0 by m0skVi4a ;]
UPDATE!
See changelog Soon SQL version! |
Re: Admin Prefixes V3.0 by m0skVi4a ;]
would it be possible to use this on csgo?
|
All times are GMT -4. The time now is 13:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.