Raised This Month: $ Target: $400
 0% 

Count disconnected player's data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tepegoz
Senior Member
Join Date: Apr 2019
Old 05-08-2020 , 09:53   Count disconnected player's data
Reply With Quote #1

I have a plugin that is counting player's stopwatch time. Player's stopwatch time showing a motd list. I want to count disconnected player's stopwatch time.
So player1 first starts stopwatchs and time is started and player1 disconnected. In this sequence I want to count with this public to disconnected players time. How to do it? I try remove is_user_connected(z) but I don't know much.

HTML Code:
public pAddName(){
	new z
	for(z=1; z<=33; z++) {	
		
		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 team = get_user_team(z)
			
			
			
			new lFirstSaid[64];
			format(lFirstSaid, 63, "%s - %d: %d: %d - %s -",aname, gPlayerStopwatch[z][TIME_SAAT], gPlayerStopwatch[z][TIME_MINUTES], gPlayerStopwatch[z][TIME_SECONDS],team)
			ArrayPushString(gNames,lFirstSaid);
			ArrayPushString(gDates,gDateNow);
		}
	}
	return PLUGIN_CONTINUE;
}
tepegoz is offline
 


Thread Tools
Display Modes

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:02.


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