How to check is player offline
#1

How i can check is player offline and do something with that?
Reply
#2

If none of connected players has a certain name or something? I do not understand.
Reply
#3

I want make script delete player fist every 2hours if player not here,but i need some function who will detect is player offline..
Reply
#4

You can't.
A connected player will have and id (playerid). When the player exists, that ID is deleted and will be assigned to the next player who enters the server. Each player receives the lowest possible ID.
When a player disconnects, he basically stops existing from the server's point of view. "playerid" won't be assigned to him anymore, so you can't have functions for offline players.
The only way you can achieve old account deletion, is with an SQL database.
Reply
#5

Can i make if the inactivity time bigger than lastlogin time server sell his fist ?
Because i learning about mysql plugin yet,and for start i making easy,for next time i will make via MYSQL
Reply
#6

You can use ReturnUser / sscanf, although it can be inaccurate sometimes. It should how-ever suffice for your purpose. If no results come up then:
a - they aren't registered, etc.

b - they are offline
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)