AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [REQ] Custom Prefix on special setinfo (https://forums.alliedmods.net/showthread.php?t=324554)

supertrio17 05-19-2020 14:22

[REQ] Custom Prefix on special setinfo
 
So I have this code here:

PHP Code:

#include <amxmodx>

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


It gives everyone with "setinfo vip 1" t flag. How can I make it so everyone with that setinfo has prefix or something that makes them different.

I want this because this is going to be special vip, so I want to have different prefix for VIP and different for VIPS with setinfo


All times are GMT -4. The time now is 16:56.

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