Raised This Month: $ Target: $400
 0% 

Count Player Leaves


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 06-17-2014 , 08:46   Count Player Leaves
Reply With Quote #1

I want to count how many times the player leaves server but not count the retry command.
I have this simple code (test code) i saw other codes but i want one simple solution.
Someone can help me ?

PHP Code:
new gDisc[33]

public 
client_disconnect(id)
{
    
set_task(10.0"LeaveSv"id)
}

public 
LeaveSv(id)
{
    if(!
is_user_connected(id))
    {
        
gDisc[id]++
        
SaveLeave(id)
    }

pepe_thugs 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 21:13.


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