Help! Save mute system and admin jail system.
#4

You have to checking in OnPlayerDisconnect callback if player is muted or is in jail. Create for this new table (for example jailedplayers) and in OnPlayerConnect and execute mysql query

Code:
//OnPlayerDisconnect
if(jail || muted) //i dont know name of yours gamemod variables
{
mysql_query(INSERT INTO ...); //save player name, uID (if your gamemod have uIDs for registered players, time)
}

//OnPlayerConnect
format(string, 128, "SELECT name, uid, time from jailedplayers where uid = %d or name = '%s'", ...);
mysql_query(string);

if(mysql_num_rows()) //system found something
{
SendClientMessage(playerid, -1, "You has left the server while in jail or you was muted!");
//the rest of code
}
Of cours this is only a clue for this.
Reply


Messages In This Thread
Help! Save mute system and admin jail system. - by Firstaction - 11.05.2014, 16:47
Re: Help! Save mute system and admin jail system. - by DaniceMcHarley - 11.05.2014, 16:58
Re: Help! Save mute system and admin jail system. - by Firstaction - 11.05.2014, 18:35
Re: Help! Save mute system and admin jail system. - by ball - 11.05.2014, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)