31.08.2016, 12:35
You can however get a gamemode to change and rotate, but it takes a lot of skill.
If you have DM.amx, TDM.amx, and RPG.amx in the gamemode folder, when you invoke GameModeExit, the server will roll onto the next.
DM will run 3 times, TDM once, then RPG one time. It will loop back to DM after the last one.
This is where endgames come into it.
https://sampwiki.blast.hk/wiki/Server.cfg <== Where to put the gamemode lines.
https://sampwiki.blast.hk/wiki/GameModeExit <== What to invoke to roll over to the next gamemode.
Another option is
You could also do that via a command, using
Код:
gamemode0 DM 3 gamemode1 TDM 1 gamemode2 RPG 1
DM will run 3 times, TDM once, then RPG one time. It will loop back to DM after the last one.
This is where endgames come into it.
https://sampwiki.blast.hk/wiki/Server.cfg <== Where to put the gamemode lines.
https://sampwiki.blast.hk/wiki/GameModeExit <== What to invoke to roll over to the next gamemode.
Another option is
Quote:
/rcon changemode [mode] - This command will change the current gamemode to the given one (example: if you want to play sftdm: /rcon changemode sftdm). |
PHP код:
SendRconCommand("changemode DM");