Hours Minutes in dialog /stats MSGBOX
#1

guys is there any idea how to show player Hours/Minutes played?



Please Response



Arshavin, Thxbb..
Reply
#2

someone response please?
Reply
#3

Well, I don't have many time to explain. I'm scripting myself.
But getting stats in a dialog is almost the same as putting it in a SendClientMessage.
Reply
#4

here is a cheap example: (I didn't test it, just wrote it right now)

new string[285];
format(string,sizeof(string),"Hours: %d, Minutes: %d"Hours,Minutes);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"S tats",string,"Accept","Decline");
Reply
#5

@Kmitska, you need GetTime and new hour, minute; to
Reply
#6

i just made this tutorial i think he can put it
Reply
#7

If you don't need minutes or anything, make a timer, set it to 3600000 (1hour) and make in stats a line HoursPlayed= and make it that every hour that number increases by 1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)