Raised This Month: $ Target: $400
 0% 

getting specified nicks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 08-28-2012 , 16:12   getting specified nicks
Reply With Quote #1

How do i get only VIP's nicknames when they connect and print it to all the rest server's players?

PHP Code:
#define VIP_ACCESS_NOBUY ADMIN_LEVEL_B
public client_putinserver id )
{
    new 
name32 ];
    
    if ( 
get_user_flagsid ) & VIP_ACCESS_NOBUY )
    {
        
get_user_nameidname31 );
    }
    
    if ( 
get_pcvar_nump_Join ) && g_iRoundCount )
    {
        
ChatColor0"%L"LANG_PLAYER"VIP_JOIN"PREFIXname );
    }

This dont work

Last edited by GhostMan; 08-28-2012 at 16:12.
GhostMan is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 08-28-2012 , 16:40   Re: getting specified nicks
Reply With Quote #2

Colorchat don't support null indexs with ML.

PHP Code:
#define VIP_ACCESS_NOBUY ADMIN_LEVEL_B
public client_putinserverid )
{
    if ( 
get_user_flagsid ) & VIP_ACCESS_NOBUY && get_pcvar_nump_Join ) && g_iRoundCount )
    {
        new 
szName32 ]
        
get_user_nameidszNamecharsmaxszName ) )
        
        new 
players32 ]
        new 
num
        
new i
        
        get_players
playersnum"ch" )
        
        for( --
numnum >= 0num-- )
        {
            
playersnum ]
            
ChatColori"%L"LANG_PLAYER"VIP_JOIN"PREFIXszName )
        }
    }

guipatinador is offline
Reply


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 05:53.


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