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

No prefix with custom plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-26-2020 , 12:34   No prefix with custom plugin?
Reply With Quote #1

Hi, so I have custom plugin made by OciXCrom, but for some reason it wont work, does anyone have a solution for this. When I type amx_plugins, its showing me that it is running, and my logs are clear, but this won't work

PHP Code:
#include <amxmodx>
#include <chatmanager>

public plugin_init()
{
    
register_plugin("CM: Setinfo Prefix""1.0""OciXCrom")
}

public 
cm_on_player_data_updated(id)
{
    new 
szInfo[2]
    
get_user_info(id"vip"szInfocharsmax(szInfo))

    if(
str_to_num(szInfo) == 1)
    {
        
cm_set_user_prefix(id"[YOUR PREFIX HERE]")
    }

I tried to create this on my own before, but that didn't work as well.

PHP Code:
#include <amxmodx>
#include <chatmanager>

#define PLUGIN "Setinfo for OciXCrom's Chat Manager"
#define VERSION "1.2"
#define AUTHOR "Mr. Boopsy"
#define PREFIX "[VIP]"
#define LAUNCHER_INFO "vip"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_authorized(id)
{
    static 
szInfo[5]
    
get_user_info(idLAUNCHER_INFOszInfocharsmax(szInfo))

    if( 
szInfo[0] == '1' )
    {
        
cm_set_user_prefix(idPREFIX)
    }

I just get normal chat without anything special. I was wondering that maybe the issue was in ChatManager.ini because I put ; before every custom prefix. But I do not know what is wron, here is my ChatManager.ini

Code:
#==============================================#
# Chat Manager by OciXCrom: Configuration file #
#==============================================#

# Colors: &x01 (DEFAULT), &x03 (TEAM COLOR); &x04 (GREEN); &x05 (WHITE); &x06 (BLUE); &x07 (RED)
# Combining two or more team colors is NOT POSSIBLE in CS 1.6: &x03, &x05, &x06, &x07 - only ONE of these can be used inside a message.

[Main Settings]
# If set to 1, all players will see all chats independent of whether they are dead or alive, excluding the other team's private chat.
# If set to 2, all players will see all chats, including the opposite team's private chat.
ALL_CHAT = 0

# Players with these flags will see all chats at all time, including all team chats.
ADMIN_LISTEN_FLAGS = m

# If the message starts with any of these symbols, it will be hidden in chat. Example: @, /, !
BLOCK_FIRST_SYMBOLS = @

# Prefixes for dead and alive players. Yes, you can set a prefix like *ALIVE* too.
DEAD_PREFIX = *DEAD*
ALIVE_PREFIX =

# The standard spectator prefix.
SPEC_PREFIX = *SPEC*

# Team prefixes that are usually shown in the team chat, in brackets.
TEAM_PREFIX_T = Terrorist
TEAM_PREFIX_CT = Counter-Terrorist
TEAM_PREFIX_SPEC = Spectator

# Text that will show when the plugin can't detect a player's location when using geoip.
ERROR_TEXT = ?

# Time formatting when $time$ is used. More info here: http://www.cplusplus.com/reference/ctime/strftime/
FORMAT_TIME = %X

# This is the file where chat messages will be logged. If you want to disable logging, leave this setting blank.
CHAT_LOG_FILE = chatmanager.log

# Format to use for the chat logs. Formats are defined in the [Format Definitions] section.
CHAT_LOG_SAY_FORMAT = log_say
CHAT_LOG_TEAM_FORMAT = log_team

# Here you can set a sound that will play when a message is written in chat. If it's blank, no sound will be played.
SAY_SOUND =
SAY_TEAM_SOUND =

# Date format for use with expiration dates where available in sections down below.
# For a list of valid parameters, see: http://www.cplusplus.com/reference/ctime/strftime/
EXPIRATION_DATE_FORMAT = %d.%m.%Y

# What to do when the date for a specific extra has expired?
# 0 = ignore the entire line
# 1 = put a "#" symbol in the beginning of the line
# 2 = remove the entire line from the file
# Note that when the setting is non-zero, the entire file will be rewritten after being read.
EXPIRATION_DATE_BEHAVIOR = 0

[Format Definitions]
# In this section you can define chat formats that you can assign to different users in the [User Formats] section.
# You should create a different format for the say and say_team chat, if you don't wan't them to look the same.
# You can use the following placeholders: $admin_prefix$, $dead_prefix$, $team$, $name$, $custom_name$, $ip$, $steam$, $userid$, $chat_color$, $message$, $time$
# You can also use these, but they need to be enabled in the .sma file first: $health$, $armor$, $frags$, $deaths$, $city$, $country$, $country_code$, $continent$, $continent_code$
# Using OciXCrom's Rank System gives you access to even more placeholders: $rank$, $current_xp$, $next_xp$, $level$, $next_level$, $next_rank$. Only the first one is enabled by default.
# To enable an additional placeholder, simply locate the #define ARG_ line in the beginning of the .sma file and uncomment it (remove //), then recompile the plugin.
# Syntax: format name = format style

format_admin = $dead_prefix$ &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_admin_team = $dead_prefix$ ($team$) &x04$admin_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_player = $dead_prefix$ &x03$custom_name$ &x01: $chat_color$$message$
format_player_team = $dead_prefix$ ($team$) &x03$custom_name$ &x01: $chat_color$$message$

log_say = [ $ip$ | $steam$ ] $dead_prefix$ $name$: $message$
log_team = [ $ip$ | $steam$ ] ($team$) $dead_prefix$ $name$: $message$

# In the sections down below you can set different prefixes, chat colors and custom names for each player or a group of players.
# You can add an unlimited amount of these extras. Each new extra needs to be added on a new line in the correct section.
# Bear in mind that the extras that are higher in the list have priority over the ones below them.
# This means that if a player for example meets the requirements for 2 or more prefixes, he will receive the one that's first in the list.

# In the syntaxes, you will find a parameter called "type". This parameter can be one of the following: flag, name, ip, steam, anyflag or noprefix.
# If it's set to "flag" (or "flags"), the plugin will check if the player has ALL of the admin flags set in the "info" parameter. You can set multiple flags instead of only one.
# The "name", "ip" and "steam" settings will check if the player's name, IP or SteamID is equal to the one set in the "info" parameter.
# When set to "anyflag", it will check if the player has ANY of the admin flags specified in the "info" parameter.
# Setting it to "noprefix" will check if the player doesn't have a prefix set. The "info" parameter doesn't have a function in this case, so you can leave it blank.

# If you're using OciXCrom's Rank System, you can also use the parameter "level" to check the user's level.

# The "expiration date" parameter is optional, so you can skip it. If set, this will be the date until the extra will be active.
# If the date has passed, the plugin will ignore the entire line. Dates must be written in the same format as set in the DATE_FORMAT setting.
# If the DATE_FORMAT setting is empty or not found in the [Settings] section, the plugin will ignore the expiration date and the extra will be active all the time.

[Admin Prefixes]
# Here you can add custom prefixes to specific players or flags that are shown when using $admin_prefix$.
# Syntax: "type" "info" "prefix" "[expiration date]"

;"name" "OciXCrom" "[Timed Prefix]" "31.12.2030"
;"name" "OciXCrom" "[Scripter]"
;"steam" "STEAM_0:0:50153248" "[CM Creator]"
;"ip" "127.0.0.1" "[BOT]"
;"flag" "l" "[Head Admin]"
;"flag" "d" "[Server Admin]"
;"flag" "e" "[Test Admin]"
;"flag" "mnp" "[Premium]"
;"flag" "b" "[VIP]"

[Chat Colors]
# Here you can add different chat colors to specific players or flags that are shown when using $chat_color$.
# Syntax: "type" "info" "chat color" "[expiration date]"

"flag" "e" "&x04"
"flag" "b" "&x03"
"flag" "" "&x01"

[Name Customization]
# Here you can modify the name shown for certain players when using $custom_name$.
# Syntax: "type" "info" "custom name" "[expiration date]"

;"name" "OciXCrom" "&x03Oci&x04XC&x03rom"

[Say/Say_Team Formats]
# Here you can specify the chat style for every user or flag.
# Syntax: "type" "info" "say format" "say_team format" "[expiration date]"

"noprefix" "" "format_player" "format_player_team"
"flag" "" "format_admin" "format_admin_team"
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2020 , 14:40   Re: No prefix with custom plugin?
Reply With Quote #2

You posted yet another thread?..... No wonder you're not seeing half of the replies. This is a very poor way of communication.

Post your plugins list using the "amxx plugins" server command.
__________________

Last edited by OciXCrom; 05-26-2020 at 14:44.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-26-2020 , 14:52   Re: No prefix with custom plugin?
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
You posted yet another thread?..... No wonder you're not seeing half of the replies. This is a very poor way of communication.

Post your plugins list using the "amxx plugins" server command.
Code:
Currently loaded plugins:
       name                    version     author            file             status
 [  1] AMX Super Cmd Manager   5.0.2       SuperCentral.co   amx_super-cmdma  running
 [  2] Flash Remote Control    12.0        OT                flashbang_remot  running
 [  3] FRC Team Color          1.5         OT                frc_teamcolors.  running
 [  4] Admin Base              1.8.2       AMXX Dev Team     admin.amxx       running
 [  5] Admin Commands          1.8.2       AMXX Dev Team     admincmd.amxx    running
 [  6] Admin Help              1.8.2       AMXX Dev Team     adminhelp.amxx   running
 [  7] Slots Reservation       1.8.2       AMXX Dev Team     adminslots.amxx  running
 [  8] Multi-Lingual System    1.8.2       AMXX Dev Team     multilingual.am  running
 [  9] Menus Front-End         1.8.2       AMXX Dev Team     menufront.amxx   running
 [ 10] Commands Menu           1.8.2       AMXX Dev Team     cmdmenu.amxx     running
 [ 11] Players Menu            1.8.2       AMXX Dev Team     plmenu.amxx      running
 [ 12] Teleport Menu           1.8.2       AMXX Dev Team     telemenu.amxx    running
 [ 13] Maps Menu               1.8.2       AMXX Dev Team     mapsmenu.amxx    running
 [ 14] Plugin Menu             1.8.2       AMXX Dev Team     pluginmenu.amxx  running
 [ 15] Admin Chat              1.8.2       AMXX Dev Team     adminchat.amxx   running
 [ 16] Anti Flood              1.8.2       AMXX Dev Team     antiflood.amxx   running
 [ 17] Scrolling Message       1.8.2       AMXX Dev Team     scrollmsg.amxx   running
 [ 18] Info. Messages          1.8.2       AMXX Dev Team     imessage.amxx    running
 [ 19] Admin Votes             1.8.2       AMXX Dev Team     adminvote.amxx   running
 [ 20] NextMap                 1.8.2       AMXX Dev Team     nextmap.amxx     running
 [ 21] TimeLeft                1.8.2       AMXX Dev Team     timeleft.amxx    running
 [ 22] Pause Plugins           1.8.2       AMXX Dev Team     pausecfg.amxx    running
 [ 23] Stats Configuration     1.8.2       AMXX Dev Team     statscfg.amxx    running
 [ 24] Restrict Weapons        1.8.2       AMXX Dev Team     restmenu.amxx    running
 [ 25] StatsX                  1.8.2       AMXX Dev Team     statsx.amxx      running
 [ 26] CS Misc. Stats          1.8.2       AMXX Dev Team     miscstats.amxx   running
 [ 27] CS Stats Logging        1.8.2       AMXX Dev Team     stats_logging.a  running
 [ 28] AMX Mod Compat Engine   1.76.rc4    AMXX Dev Team     amxmod_compat.a  running
 [ 29] unknown                 unknown     unknown           vip_launcher.am  running
 [ 30] unknown                 unknown     unknown           colored_flashba  bad load
 [ 31] Advanced Bullet Damage  1.0         Sn!ff3r           abd.amxx         running
 [ 32] VIP Version             1.0         By TsitSi         VIP.amxx         running
 [ 33] MultiJump               1.1         twistedeuphoria   multijump.amxx   running
 [ 34] Colored Smoke           1.1         xPaw              ColoredSmoke.am  running
 [ 35] Awp Spawn Fixer         2.0         GHW_Chronic       GHW_Awp_Map_Han  running
 [ 36] Reset Score             1.0         Silenttt          resetscore.amxx  running
 [ 37] Semiclip                1.31        skyjur            semiclip.amxx    running
 [ 38] Grenade Trail           1.0         Jim               grenade_trail.a  running
 [ 39] Target Info on HUD      1.2         Sylwester         target_info.amx  running
 [ 40] unknown                 unknown     unknown           sgren_features.  bad load
 [ 41] Grenade/C4 Fixes & Hud  1.2         Numb              grenade_c4_fixe  running
 [ 42] Ultimate Sounds         1.7         Dizzy / Bmann_42  ultimate_sounds  running
 [ 43] Ultimate Anti-Cheat     1.5         Milutinke (ByM),  ByM_UltimateAnt  paused
 [ 44] mdbBans                 4.8         Desikac           mdbBansEN.amxx   running
 [ 45] MILF AntiReklama        2.0         Turshija          milf_antireklam  running
 [ 46] ReChecker Logging       freesrv     custom            ReCheckerLogger  running
 [ 47] UAIO Manager            2.1         $uicid3           uaio_manager.am  running
 [ 48] UAIO (Admin Menu)       1.50        xeroblood/$uicid  uaio_admin.amxx  running
 [ 49] CU: amx_cvar Fix        1.1         Arkshine          cu_amx_cvar_fix  running
 [ 50] Admin Spectator ESP     1.3         KoST              admin_spec_esp.  running
 [ 51] Mr. Boopsy Set Info     1.7         Mr. Boopsy        boopsy_setinfo.  running
 [ 52] Chat Manager            4.5.1       OciXCrom          crx_chatmanager  running
 [ 53] CM: Toggle Chat         4.1         OciXCrom          crx_chatmanager  running
 [ 54] Setinfo for OciXCrom's  1.2         Mr. Boopsy        ocixcrom_vip_pr  running
 [ 55] unknown                 unknown     unknown           scm_entity_edit  bad load
 [ 56] unknown                 unknown     unknown           cs_team_semicli  bad load
( 30) Load fails: Plugin file open error (plugin "colored_flashbangs.amx")
( 40) Load fails: Plugin file open error (plugin "sgren_features.amxx")
( 55) Load fails: Plugin file open error (plugin "scm_entity_editor.amxx")
( 56) Load fails: Plugin file open error (plugin "cs_team_semiclip.amxx")
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2020 , 14:59   Re: No prefix with custom plugin?
Reply With Quote #4

Try setting a prefix in the .ini file to see if it works. If it doesn't some other plugin is blocking this one.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-26-2020 , 18:44   Re: No prefix with custom plugin?
Reply With Quote #5

It does work, I will try to find plugin that is blocking it.
supertrio17 is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-26-2020 , 20:25   Re: No prefix with custom plugin?
Reply With Quote #6

Quote:
Multi-Quote This Message Quick reply to this message #4
Try setting a prefix in the .ini file to see if it works. If it doesn't some other plugin is blocking this one.
So, I litteraly disabled every plugin but default ones, and it still doesnt work, I tried both plugins, but neither one works. Have any other idea?
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2020 , 21:02   Re: No prefix with custom plugin?
Reply With Quote #7

I don't see my sub-plugin in the plugins list.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-26-2020 , 21:51   Re: No prefix with custom plugin?
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
I don't see my sub-plugin in the plugins list.
This is the one I tried

Quote:
[ 54] Setinfo for OciXCrom's 1.2 Mr. Boopsy ocixcrom_vip_pr running
I did try yours, but when I did amxx plugins mine plugin was on.

Last edited by supertrio17; 05-26-2020 at 21:56.
supertrio17 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-27-2020 , 08:18   Re: No prefix with custom plugin?
Reply With Quote #9

You're submitting a thread asking for help about a plugin and you haven't even tested the plugin? I'm sorry, but if you dont start using logic and common sense, we won't get anywhere with this.

Remove your attempts of making this and add ONLY MINE. Then give me the updated plugins list because I'm not convinced that you did things like you should.
__________________

Last edited by OciXCrom; 05-27-2020 at 08:19.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-27-2020 , 11:36   Re: No prefix with custom plugin?
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
You're submitting a thread asking for help about a plugin and you haven't even tested the plugin? I'm sorry, but if you dont start using logic and common sense, we won't get anywhere with this.

Remove your attempts of making this and add ONLY MINE. Then give me the updated plugins list because I'm not convinced that you did things like you should.
You do not understand what I was saying. I removed all plugins, I tried yours but it didn't work, why are you saying now that I didn't even try yours? I litteraly said that I tried yours and it didn't work. I do not even know myself why it is not working, maybe I need to add something in config.ini?
supertrio17 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 12:57.


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