Raised This Month: $ Target: $400
 0% 

Online Players >=


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-24-2017 , 16:53   Re: Online Players >=
Reply With Quote #1

Ways of getting a random player is NOT the topic of this thread. Don't ask questions in other people's threads, open your own. Also that's been answered multiple times.
klippy is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-24-2017 , 18:27   Re: Online Players >=
Reply With Quote #2

if(iNum >0) is the same of if(!iNum), I did not see the -1 there.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-25-2017 , 20:42   Re: Online Players >=
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
if(iNum >0) is the same of if(!iNum), I did not see the -1 there.
It might be correct if only the native random(1) have this possibility 0-0 but ithink in that case it has 2 possibilities 0 & 1
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
LifeStone
Member
Join Date: Oct 2015
Old 03-25-2017 , 13:15   Re: Online Players >=
Reply With Quote #4

so that is correct ?

PHP Code:
    new iPlayers32 ], iNum;
    
get_playersiPlayersiNum"a" );
    
    if( 
iNum )
    {
        
// blablablablalbal
    


Last edited by LifeStone; 03-25-2017 at 13:17.
LifeStone is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-25-2017 , 13:51   Re: Online Players >=
Reply With Quote #5

It will return the number of alive players.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-25-2017 at 13:52.
EFFx is offline
LifeStone
Member
Join Date: Oct 2015
Old 03-26-2017 , 06:01   Re: Online Players >=
Reply With Quote #6

i have found that someone can tell me if is correct method ?

PHP Code:
stock get_playersnum() 

    new 
players[32], szamlalo
    
get_players(playersszamlalo"ch"); 
     
    return 
szamlalo
}  


if( 
get_playersnum( ) >= 
 
/* */

Last edited by LifeStone; 03-26-2017 at 06:01.
LifeStone is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-26-2017 , 06:12   Re: Online Players >=
Reply With Quote #7

Quote:
Originally Posted by LifeStone View Post
i have found that someone can tell me if is correct method ?

PHP Code:
stock get_playersnum() 

    new 
players[32], szamlalo
    
get_players(playersszamlalo"ch"); 
     
    return 
szamlalo
}  


if( 
get_playersnum( ) >= 
 
/* */
if you are trying to get all the connected players { IGNORING HLTV & BOTS } YES


BUT THIS IS NATIVE 'get_playersnum( )'AND ITS NOT A STOCK so its NO.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
LifeStone
Member
Join Date: Oct 2015
Old 03-26-2017 , 06:24   Re: Online Players >=
Reply With Quote #8

i will try to use that then ...

PHP Code:
new iPlayers32 ], iNum;
get_playersiPlayersiNum"ch" );
    
if( 
iNum )
{
blblbalb

LifeStone is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-04-2017 , 21:37   Re: Online Players >=
Reply With Quote #9

Thats what I asked CrazY. Check page #2
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-04-2017 at 21:37.
EFFx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-04-2017 , 22:18   Re: Online Players >=
Reply With Quote #10

Hmm, now I understand, thanks EFF.
__________________








CrazY. 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 17:47.


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