Raised This Month: $ Target: $400
 0% 

[Help] Count player connecting ,etc....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 05-12-2010 , 10:39   [Help] Count player connecting ,etc....
Reply With Quote #1

I) Title
PHP Code:
    new Playersnum
    
new Count
    
new Num
    Playersnum 
get_playersnum()
            
    for(
Count 0;Count <= Playersnum;Count++)
        if(
is_user_connected(Count))
            
Num++        
            
Playersnum Num 
Is that correct ??
II)
1) I want to add points into 2 variables , like this ..:
Quote:
g_Tpoints
g_CTpoints
When a player in a team killed , point is added to his team's variables..
3)But points start counting only when the number of players connecting (not including SPECTATOR) is bigger than "cvar_playerrequired" <- that's not difficult for me...
Can anybody help me , thanks in advance....
5c0r-|3i0 is offline
 



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 03:50.


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