28.09.2018, 20:02
https://sampwiki.blast.hk/wiki/SetGameModeText
https://sampwiki.blast.hk/wiki/Advanced_Server_Controls
You can use SendRconCommand in your script, here are some RCON commands below:
etc..
https://sampwiki.blast.hk/wiki/Advanced_Server_Controls
You can use SendRconCommand in your script, here are some RCON commands below:
PHP код:
RCON Commands
Type cmdlist for commands (or, varlist for variables) making use of the RCON in-game ('/rcon cmdlist'). You do not need to type with [ ] they're just to highlight the parameter.
These are the functions that you as admin can use:
/rcon cmdlist - Shows a list with commands.
/rcon varlist - Shows a list with the current variables.
/rcon exit - Closes the server.
/rcon echo [text] - Shows the [text] in the console of the server (NOT the client-console in-game).
/rcon hostname [name] - change the hostname text (example: /rcon hostname my server).
/rcon gamemodetext [name] - change the gamemode text (example: /rcon gamemodetext my gamemode).
/rcon mapname [name] - change the map name text (example: /rcon mapname San Andreas).
/rcon exec [filename] - Executes the file which contains server cfg (example: /rcon exec blah.cfg).
/rcon kick [ID] - Kick the player with the given ID (example: /rcon kick 2).
/rcon ban [ID] - Ban the player with the given ID (example: /rcon ban 2).