AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Read Players and Maxplayer (https://forums.alliedmods.net/showthread.php?t=216423)

Jhob94 05-20-2013 20:55

Read Players and Maxplayer
 
Hi
How i can read the amount of players that are connected in one server and maxplayers of it?
Iam not saying about the server running plugin but some other server.
Like XRedirect does on HUD message and menu.

hornet 05-20-2013 23:55

Re: Read Players and Maxplayer
 
Since you know of a plugin that uses it, why not take a look into the coding of it ... ?

Jhob94 05-21-2013 07:40

Re: Read Players and Maxplayer
 
Quote:

Originally Posted by hornet (Post 1955515)
Since you know of a plugin that uses it, why not take a look into the coding of it ... ?

Code is too long, to many things for search one thing that idk what it is :3

wickedd 05-21-2013 10:29

Re: Read Players and Maxplayer
 
Search the forum, there's a tutorial.

Jhob94 05-21-2013 10:36

Re: Read Players and Maxplayer
 
Found this
Well when i look to that is like when i look to XRedirect. To many things and iam just looking for simple thing for show players and maxplayers of others servers in a HUD message...

Jhob94 06-04-2013 09:36

Re: Read Players and Maxplayer
 
Bump
Anyway i read about it, but hum it have lot of stuff and i just want read players and maxplayers. And from what i saw, queries load individual the IP and Port. Iam looking for read it together.
Can someone help?

Clauu 06-04-2013 09:43

Re: Read Players and Maxplayer
 
http://www.amxmodx.org/funcwiki.php?...yers&go=search for getting the maxplayers setting and http://www.amxmodx.org/funcwiki.php?...snum&go=search for users connected.

Jhob94 06-04-2013 12:38

Re: Read Players and Maxplayer
 
Quote:

Originally Posted by Clauu (Post 1964320)

Are you serious?
What about read before post? That isnt what i want, that is easy to do lol

hleV 06-04-2013 12:49

Re: Read Players and Maxplayer
 
Code:

get_playersnum()
get_maxplayers()


Jhob94 06-04-2013 12:51

Re: Read Players and Maxplayer
 
Quote:

Originally Posted by hleV (Post 1964451)
Code:

get_playersnum()
get_maxplayers()


One more that dont read all xD


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

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