Raised This Month: $ Target: $400
 0% 

help on get_playersnum


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Juba_PornBorn
BANNED
Join Date: Apr 2007
Location: Caracas
Old 05-02-2007 , 02:47   help on get_playersnum
Reply With Quote #1

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.

Last edited by Juba_PornBorn; 05-02-2007 at 03:22.
Juba_PornBorn is offline
Send a message via MSN to Juba_PornBorn
Juba_PornBorn
BANNED
Join Date: Apr 2007
Location: Caracas
Old 05-02-2007 , 12:13   Re: help on get_playersnum
Reply With Quote #2

Hey guys some help here please!
Juba_PornBorn is offline
Send a message via MSN to Juba_PornBorn
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2007 , 12:22   Re: help on get_playersnum
Reply With Quote #3

Use get_players() native. Read amxmodx\scripting\include\amxmodx.inc or function reference for details.
VEN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-02-2007 , 12:25   Re: help on get_playersnum
Reply With Quote #4

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. -_-
__________________
Arkshine is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 05-02-2007 , 12:47   Re: help on get_playersnum
Reply With Quote #5

Don't bump your threads again under punishment of something.
__________________
Brad is offline
Juba_PornBorn
BANNED
Join Date: Apr 2007
Location: Caracas
Old 05-02-2007 , 13:13   Re: help on get_playersnum
Reply With Quote #6

sorry but if I would've not done it I would've not got an answer.
Thanks guys.

Last edited by Juba_PornBorn; 05-02-2007 at 15:19.
Juba_PornBorn is offline
Send a message via MSN to Juba_PornBorn
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2007 , 14:11   Re: help on get_playersnum
Reply With Quote #7

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
VEN 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 06:39.


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