View Single Post
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-28-2018 , 20:27   Re: [New] Welcome MSG + Max Players
Reply With Quote #8

Quote:
Originally Posted by FonixPro20 View Post
The point is The Alive Players Bro .....

PHP Code:
public fnGetAliveCsTeams:csTeam // csTeam can be CS_TEAM_CT, CS_TEAM_T, CS_TEAM_UNASSIGNED, CS_TEAM_SPECTATOR
{
    new 
iMax get_maxplayers( );
    new 
iCount 0;

    for( new 
iClient 1iClient iMaxiClient++ )
        if( 
is_user_aliveiClient ) )
            if( 
cs_get_user_teamiClient ) == csTeam )
                
iCount++;

    return 
iCount;

And MSG Just For Fun /// Welcome ( Name ) To Server , Have Fun !! \\\

Alive Players Making by : marcelowzd
You don't need to say everywhere that i did this part for you. It is very simple, really.
But i also told you that the first method (the one that used get_players) is also better.
__________________
marcelowzd is offline