SA-MP Forums Archive
How i can make this ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How i can make this ? (/showthread.php?tid=545752)



How i can make this ? - MasonSFW - 10.11.2014

How to check players inactive time on server? and if players back also logged in will see this message ?

Quote:

You were last on 0 weeks, 1 day, 23 hours, 53 minutes and 35 seconds ago.

Thank for help (+rep)


Re: How i can make this ? - CoaPsyFactor - 10.11.2014

try using THIS plugin, it is easy.

You need to store current time into variable (e.g lastOnline[playerid]), and just calculate difference between current time and last online. and after showing message, update lastOnline to current timestamp (use unix timestamp)


Re: How i can make this ? - biker122 - 10.11.2014

Use gettime() function and use TimeStamptoDate include.


Re: How i can make this ? - MasonSFW - 10.11.2014

Can anyone give simple for me ?


Re: How i can make this ? - Stinged - 10.11.2014

This isn't a request section..
Every topic you make you request something.


Re: How i can make this ? - Inesh - 10.11.2014

I don't think you would get what You're searching for, But if you hire a scripter - You will be able to make it from scratch, Or I've found this its a little similar, You can test it Out!

https://sampforum.blast.hk/showthread.php?tid=266893


Re: How i can make this ? - MasonSFW - 13.11.2014

bump


Re: How i can make this ? - MasonSFW - 14.11.2014

?