Raised This Month: $12 Target: $400
 3% 

[New] Max players


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
FonixPro20
Member
Join Date: Mar 2018
Old 03-24-2018 , 01:57   [New] Max players
Reply With Quote #1

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;

Attached Files
File Type: sma Get Plugin or Get Source (KG_ShowMaxPlayers.sma - 789 views - 2.0 KB)

Last edited by FonixPro20; 08-31-2019 at 10:12. Reason: Enjoy , Have Fun !!.
FonixPro20 is offline
man_s_our
Senior Member
Join Date: Jul 2017
Location: aim_taliban
Old 03-24-2018 , 08:49   Re: [New] Welcome MSG + Max Players
Reply With Quote #2

post it as sma file if you want to submit it as a plugin
or post it in scripting help sub-forum if you want someone to help you
__________________
man_s_our is offline
FonixPro20
Member
Join Date: Mar 2018
Old 03-24-2018 , 22:05   Re: [New] Welcome MSG + Max Players
Reply With Quote #3

Ok I Will Bro Thanks
FonixPro20 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-24-2018 , 22:09   Re: [New] Welcome MSG + Max Players
Reply With Quote #4

What's the point of this plugin? Everyone can press TAB and can see who's alive. Even if you're playng a match it doesn't take more than 2 sec

Last edited by WhiteFang1319; 03-24-2018 at 22:09.
WhiteFang1319 is offline
FonixPro20
Member
Join Date: Mar 2018
Old 03-24-2018 , 22:17   Re: [New] Welcome MSG + Max Players
Reply With Quote #5

The point gets alive players u can use on hud or chat ...

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;

by : marcelowzd

Last edited by FonixPro20; 08-31-2019 at 10:14.
FonixPro20 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-25-2018 , 00:08   Re: [New] Welcome MSG + Max Players
Reply With Quote #6

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

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

Alive Players Making by : marcelowzd
Why make a plugin for showing alive players when they can easily use TAB? I'm sure it's much more convenient to them rather than typing /players or binding and then seeing it in chat.
WhiteFang1319 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-25-2018 , 17:58   Re: [New] Welcome MSG + Max Players
Reply With Quote #7

It would be better if it shows how many enemies alive left in a hudmessage in the middle of the screen
For example...

5 Enemies Left
4 Allies Left
You are the last hope, and so on...


And maybe read more threads about optimizing code.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-25-2018 at 18:00.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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
JocAnis
Veteran Member
Join Date: Jun 2010
Old 03-29-2018 , 11:43   Re: [New] Welcome MSG + Max Players
Reply With Quote #9

wtf...just press tab and see how many alive players
JocAnis is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-30-2018 , 10:22   Re: [New] Welcome MSG + Max Players
Reply With Quote #10

Quote:
Originally Posted by JocAnis View Post
wtf...just press tab and see how many alive players
It's written for laziness purposes.
__________________
Relaxing 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 06:38.


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