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

Hi,Jail and mute system i want to saving systems.My gamemode is mysql.I Jail and mute jail looking.I'm sorry bad English.
Reply
#2

This is a help section not Request Scripts.
Reply
#3

Quote:
Originally Posted by DaniceMcHarley
View Post
This is a help section not Request Scripts.
Yardım etsen цlecen mi amk?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)