AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   where the error? (https://forums.alliedmods.net/showthread.php?t=171021)

kent4 10-31-2011 14:25

where the error?
 
PHP Code:

#include <colored_translit>
#include <amxmodx>

#define VIP_FLAG ADMIN_LEVEL_H

public plugin_init()
{
    
register_plugin("123""version""autor");
}
public 
ct_message_format(id)
{
if ( 
get_user_flags id ) & VIP_FLAG )
    {
        
ct_add_to_msg(CT_MSGPOS_PREFIX"[VIP]");
    }
    
    return 
PLUGIN_CONTINUE;


Spoiler


why not plug running?

fysiks 10-31-2011 19:32

Re: where the error?
 
Quote:

Originally Posted by kent4 (Post 1587306)
where the error?

ct_message_format(id) is never executed.

kent4 11-01-2011 10:28

Re: where the error?
 
Please tell me how to write properly?

fysiks 11-01-2011 16:25

Re: where the error?
 
Quote:

Originally Posted by kent4 (Post 1587880)
Please tell me how to write properly?

I don't know what you are trying to do, nor do I know what the function you use from the include does so I can't really help you. If you tell us what you are trying to do and provide a link to the include then you might get some help.

kent4 11-03-2011 14:50

Re: where the error?
 
if a certain player has a flag such as "T" when composing a message in chat before or after the nickname, spelled VIP
example:
[VIP] player: text
or
player [VIP]: text

sorry: translate.google

Backstabnoob 11-03-2011 15:09

Re: where the error?
 
Quote:

Originally Posted by kramesa (Post 1589307)

This?

No.

kramesa 11-03-2011 15:12

Re: where the error?
 
Quote:

Originally Posted by Backstabnoob (Post 1589315)
No.

Fail haha

Emp` 11-03-2011 15:29

Re: where the error?
 
Make sure you are running the Colored Translit v3.0 plugin.

kent4 11-03-2011 15:45

Re: where the error?
 
is it possible to do without the plug colored_translit? and write my idea of ​​standard modules without colored_translit?


All times are GMT -4. The time now is 14:26.

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