Raised This Month: $ Target: $400
 0% 

Get Lower Player Num


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
issen1
Member
Join Date: Jan 2010
Old 10-16-2010 , 12:57   Re: Get Lower Player Num
Reply With Quote #7

Use client_infochanged or something to retrieve the event when a player switches team. Pseudocode:

PHP Code:
public client_infochanged(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
        if (
g_iCtCount CountOfTerrors/3)
            
cs_set_user_team(idCS_TEAM_CT)
            return;

        
g_iCtTime[id] = get_gametime()
        
g_iCtCount += 1
}

public 
client_disconnect(id)
{
    if (
CountOfCTs CountOfTerrors/3)
          
lastCt 0
          
for (i=133i++)
              if(
cs_get_user_team(id) == CS_TEAM_CT && g_iCtTime[i] > g_iCtTime[lastCt])
                    
lastCt i

Just to give you a basic idea what I'm talking about. Also, if you don't plan on scripting yourself, post in the Request forum.

greets
__________________
greets (:
issen1 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 10:20.


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