Raised This Month: $ Target: $400
 0% 

How to get number of players and maxplayers limit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnHiMiLaToR
Member
Join Date: Mar 2007
Old 06-16-2007 , 15:04   How to get number of players and maxplayers limit?
Reply With Quote #1

How to get number of players and maxplayers limit?
Help.
AnHiMiLaToR is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-16-2007 , 15:05   Re: How to get number of players and maxplayers limit?
Reply With Quote #2

1. get_playersnum()
2. get_maxplayers()
Deviance is offline
AnHiMiLaToR
Member
Join Date: Mar 2007
Old 06-16-2007 , 15:09   Re: How to get number of players and maxplayers limit?
Reply With Quote #3

Thanks a lot.

Now: how to get the value of a cvar? I'm trying by the method in amxmodx.inc but it isn't workin'

Last edited by AnHiMiLaToR; 06-16-2007 at 15:22.
AnHiMiLaToR is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-16-2007 , 15:29   Re: How to get number of players and maxplayers limit?
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?...cvar&go=search
Lee is offline
AnHiMiLaToR
Member
Join Date: Mar 2007
Old 06-16-2007 , 15:31   Re: How to get number of players and maxplayers limit?
Reply With Quote #5

tnx, i'm lazy and sleepy
AnHiMiLaToR is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-16-2007 , 15:34   Re: How to get number of players and maxplayers limit?
Reply With Quote #6

I give you an advice: Use "pcvar-s"
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
AnHiMiLaToR
Member
Join Date: Mar 2007
Old 06-16-2007 , 15:37   Re: How to get number of players and maxplayers limit?
Reply With Quote #7

What's the difference (i'm a young coder ^^)
AnHiMiLaToR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-16-2007 , 15:39   Re: How to get number of players and maxplayers limit?
Reply With Quote #8

http://wiki.amxmodx.org/Optimizing_Plugins
__________________
Arkshine is offline
Reply



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


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