/admins with offline function
#4

Lack of information, the admin level is in the main players table or you have a separated table for admins? Either way, retrieving the player's name and use it in sscanf (1st parameter) with "r" or "u" specifier can easily figure out if the player is connected (if variable (3rd parameter) is not equal to INVALID_PLAYER_ID then player is connected).

Don't forget to set the admin level column as index in the table's structure to make it faster.
Reply


Messages In This Thread
/admins with offline function - by PepsiCola23 - 18.11.2016, 21:34
Re: /admins with offline function - by TwinkiDaBoss - 18.11.2016, 23:24
Re: /admins with offline function - by ranme15 - 19.11.2016, 09:13
Re: /admins with offline function - by Konstantinos - 19.11.2016, 10:41
Re: /admins with offline function - by PepsiCola23 - 19.11.2016, 11:25

Forum Jump:


Users browsing this thread: 1 Guest(s)