Posts: 470
Threads: 37
Joined: Nov 2010
Reputation:
0
Hello guys, i want to send a command like CMD:ban [playerid] [time] [reason] from user panel PHP to my server. Evreyone know how i can do this ? tell me pls
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Socket plugin. Or use RCON. I believe there's some RCON connector flying around somewhere, although that means you need to have remote RCON enabled, which can be a security vulnerability.
Posts: 470
Threads: 37
Joined: Nov 2010
Reputation:
0
How to use than socket plugin, i don`t understand what he do and i don`t want to send a rcon command i want to send my ban command from the gamemode with parameters from there.
Posts: 470
Threads: 37
Joined: Nov 2010
Reputation:
0
that is for rcon commands man, how to send a command to rcon with parameters ? how receivces the server ?
Posts: 470
Threads: 37
Joined: Nov 2010
Reputation:
0
I found a posibble solution using MYSQL and a timer on server. I create a table into database where i set some data which i check with a timer in my gamemode and punish player if is connected. What do you think, slows server ?
Posts: 16
Threads: 4
Joined: Aug 2013
Reputation:
0
Your php script should be connected to the db.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by jamal1992
I found a posibble solution using MYSQL and a timer on server. I create a table into database where i set some data which i check with a timer in my gamemode and punish player if is connected. What do you think, slows server ?
|
You can do this, but it will slow your server down depending on how regularly you check the database with the timer. I'd personally say doing critical things like kicking a player would definitely best be done using sockets instead, but for none important things then using a MySQL table / timer and running that every minute or so would be fine.