AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help on get_playersnum (https://forums.alliedmods.net/showthread.php?t=54712)

Juba_PornBorn 05-02-2007 02:47

help on get_playersnum
 
I want to activate some code on an amount of players only that comand is get_playersnum

can someone give me an example on wich bots are included?


****get_playersnum*****

if((get_playersnum() == 10) || (get_playersnum() + bots == 10))
{}
else return plugin_handled

PS-need also the function that counts rounds

Just realized that this should have been in script help please move it.

Juba_PornBorn 05-02-2007 12:13

Re: help on get_playersnum
 
Hey guys some help here please!

VEN 05-02-2007 12:22

Re: help on get_playersnum
 
Use get_players() native. Read amxmodx\scripting\include\amxmodx.inc or function reference for details.

Arkshine 05-02-2007 12:25

Re: help on get_playersnum
 
Not sure that it's a good way.

Code:
get_players( players, num ) if( num == 10 ) {

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

EDIT: Arg. Ven is fast. -_-

Brad 05-02-2007 12:47

Re: help on get_playersnum
 
Don't bump your threads again under punishment of something.

Juba_PornBorn 05-02-2007 13:13

Re: help on get_playersnum
 
sorry but if I would've not done it I would've not got an answer.
Thanks guys.

VEN 05-02-2007 14:11

Re: help on get_playersnum
 
You have to build it yourself using http://forums.alliedmods.net/showthread.php?t=42159 or http://wiki.amxmodx.org/index.php/Ha...ents#TeamScore


All times are GMT -4. The time now is 06:39.

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