Played time
#4

I think this should work.

PHP код:
stock GetPlayerConnectedTime(playerid, &hours, &minutes, &seconds)
{
        new 
connected_time NetStats_GetConnectedTime(playerid);
        
seconds = (connected_time 1000) % 60;
        
minutes = (connected_time / (1000 60)) % 60;
        
hours = (connected_time / (1000 60 60));
        return 
true;
}

CMD:Example(params, []) // Just an example,. the syntax is wrong so just use your own command
{
    new 
hoursminutesseconds;
    new 
string[64];
    
GetPlayerConnectedTime(playeridhoursminutesseconds);
    
format(stringsizeof(string), "You've been online for : %d Hours, %d Minutes and %d Seconds!"hoursminutesseconds);
    
SendClientMessage(playerid, -1string);

Reply


Messages In This Thread
Played time - by kalanerik99 - 18.06.2015, 14:09
Re: Played time - by Gammix - 18.06.2015, 14:26
Re: Played time - by kalanerik99 - 19.06.2015, 12:51
Re: Played time - by rappy93 - 19.06.2015, 13:01
Re: Played time - by kalanerik99 - 19.06.2015, 13:07
Re: Played time - by rappy93 - 19.06.2015, 13:12
Re: Played time - by kalanerik99 - 19.06.2015, 14:33
Re: Played time - by Stanford - 19.06.2015, 15:58
Re: Played time - by Threshold - 19.06.2015, 16:24
Re: Played time - by kalanerik99 - 19.06.2015, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)