Raised This Month: $51 Target: $400
 12% 

Count disconnected player's data


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tepegoz
Senior Member
Join Date: Apr 2019
Old 05-12-2020 , 10:06   Count disconnected player's data
Reply With Quote #1

This is my plugin. It count players' model time and shows its on a list. Can you convert these codes to make saving also disconnected players stats? I want to change this part :
PHP Code:
public pAddName(){
    new 
z
    
for(z=1z<=33z++) {    
        
        if(!
is_user_bot(z) &&  !is_user_hltv(z) && is_user_connected(z) && model_is_alan[z]){
            new 
aname[6]
            
get_user_name(z,aname,5)
            new 
mapname[64]
            
get_mapname(mapname,63)
            new 
team get_user_team(z)
            
            new 
lFirstSaid[64];

  
            
ArrayPushString(gNames,lFirstSaid);
            
ArrayPushString(gDates,gDateNow);
            
        }
    }
    return 
PLUGIN_CONTINUE;

[/PHP]

Last edited by tepegoz; 07-13-2020 at 10:58.
tepegoz is offline
tepegoz
Senior Member
Join Date: Apr 2019
Old 05-16-2020 , 12:03   Re: Count disconnected player's data
Reply With Quote #2

Is there any helper?
tepegoz is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-16-2020 , 12:56   Re: Count disconnected player's data
Reply With Quote #3

Did you write this plugin?

If yes, I would suggest you use nVault Array and nVault Utility, it will make saving and retrieving multiple pieces of data for a player much easier (nVault array) and allow you to search through a vault to get data for players who are not connected (nVault utility).

If no, then maybe someone will volunteer to do this for you.
__________________

Last edited by Bugsy; 05-16-2020 at 12:57.
Bugsy is offline
tepegoz
Senior Member
Join Date: Apr 2019
Old 05-21-2020 , 19:45   Re: Count disconnected player's data
Reply With Quote #4

Is there any volunteer?
tepegoz 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 07:28.


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