offline ban
#1

I dont understand mysql
I want anyone to create /oban cmd to ban the player offline
PHP код:
    format(banreasonsizeof(banreason), "INSERT INTO `playerbans` (`banned_by`, `banned_for`, `player_banned`, `player_ip`) VALUES ('%s', '%s', '%s', '%s')"adminNamereasonplayerNameplayersIP);
                
mysql_query(banreasonMYSQL_ADD_BANplayeridconnection); 
Reply
#2

is that your code?
Reply
#3

Look at your /ban command and see how things work. And then just remove somethings and voila, you have the command.
PS:You also should update your mysql plugin and include, they seem to be R6 which is outdated.
Reply
#4

[DELETE]
[INTERNET LAG DOUBLE POST]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)