AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bots, realplayer count, simple question. (https://forums.alliedmods.net/showthread.php?t=84253)

PauliusBa 01-23-2009 01:12

Bots, realplayer count, simple question.
 
Is it possible to combine this
Code:

new gi_TotalPlayers
//blah blah
  get_players( ga_PlayerID, gi_TotalPlayers )

with getting real players (eg. with no bots)?
get_realplayersnum

I'm working with some voting plugin and it counts bots as potential voters..

IneedHelp 01-23-2009 01:19

Re: Bots, realplayer count, simple question.
 
http://amxmodx.org/funcwiki.php?go=func&id=174

new Players[32]
new playerCount
get_players(Players, playerCount, "c")

Bugsy 01-23-2009 01:21

Re: Bots, realplayer count, simple question.
 
Quote:

Originally Posted by PauliusBa (Post 748516)
Is it possible to combine this
Code:

new gi_TotalPlayers
//blah blah
  get_players( ga_PlayerID, gi_TotalPlayers )

with getting real players (eg. with no bots)?
get_realplayersnum

I'm working with some voting plugin and it counts bots as potential voters..

http://www.amxmodx.org/funcwiki.php?go=func&id=174
PHP Code:

new iPlayers[32];
new 
iNum;
get_playersiPlayersiNum "c" );

for( new 
0i<iNumi++)
    
client_print(iPlayers[i] , print_chat "we are not bots!");


get_playersiPlayersiNum "d" );

for( new 
0i<iNumi++)
    
client_print(iPlayers[i] , print_chat "we are bots!"); 



All times are GMT -4. The time now is 01:43.

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