Ban/Kick player from a PHP webpanel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ban/Kick player from a PHP webpanel (
/showthread.php?tid=354887)
Ban/Kick player from a PHP webpanel -
im - 28.06.2012
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!
Re: Ban/Kick player from a PHP webpanel -
telmo_ferreira - 28.06.2012
mysql to get the user ip,
Server Query and RCON API - 1.2 to ban/kick
https://sampforum.blast.hk/showthread.php?tid=104299
Re: Ban/Kick player from a PHP webpanel -
im - 28.06.2012
UDP can't be used on most shared web hosting and I don't want to pay for a VPS just to use UDP..
Re: Ban/Kick player from a PHP webpanel -
phillip875 - 28.06.2012
There is another option.
Add a table for kick / ban.
Make a timer for ingame checking it every 5 seconds.
Re: Ban/Kick player from a PHP webpanel -
StatusRed - 01.07.2012
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