Raised This Month: $ Target: $400
 0% 

Error while making prefix plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-25-2020 , 15:06   Error while making prefix plugin.
Reply With Quote #1

Hi, so I tried making extension for OciXCrom's plugin, but I can't get it right.
So I wan't to give someone prefix on righ setinfo. | setinfo "vip" "1"

So I got this far but I can't quite make it.

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

public plugin_init()
{
    
register_plugin("SetInfo Prefix""1.2""OciXCrom")
}

public 
client_authorized(id)
{
    static 
szInfo[5]
    
get_user_info(id"vip"szInfocharsmax(szInfo))
    
    if( 
szInfo[0] == '1' )
    {
        
cm_set_user_prefix(id, [VIP])
    }

supertrio17 is offline
 


Thread Tools
Display Modes

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 17:10.


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