Ban/Kick player from a PHP webpanel
#1

Hello.

My gamemode uses a mysql database. My userpanel uses the same database.
I'm working on a userpanel/adminpanel and I want to have the ability to ban/kick a player from the webpanel.
How can I do that?
I know that I can use a timer and check every x seconds if the player was kicked, but I don't know how good is that for the server and is not instant. Is there a better way to ban/kick a player from a PHP script without using a timer?

Thanks!
Reply
#2

mysql to get the user ip,

Server Query and RCON API - 1.2 to ban/kick

https://sampforum.blast.hk/showthread.php?tid=104299
Reply
#3

UDP can't be used on most shared web hosting and I don't want to pay for a VPS just to use UDP..
Reply
#4

There is another option.

Add a table for kick / ban.

Make a timer for ingame checking it every 5 seconds.
Reply
#5

You might want to try using my PHP API, with a lot more RCON functions plus the ability to get the server's ping: https://sampforum.blast.hk/showthread.php?tid=355574
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)