/admins with offline function
#2

Its quite simple


Check admins in SQL
Quote:

mysql_query("SELECT username FROM users WHERE admin='1'"); //select all level 1 admins for example

//fetch the stuff etc...
if(IsPlayerConnected(DataFromSQL['username'])) format(string,sizeof(string),"%s ONLINE");

This was just an example code of course
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)