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;
}