Context: I want to run a certain set of commands every round without binding them to a key and then pressing the key every round so that they would apply to the next round, e.g. I'll do
bind "p" "[command 1]; [command 2]; [exec [file containing more commands].cfg]" and the press
p every round.
Most of the commands I want to run apply at the beginning of the next round and last only for that round. So, if I forget, then I have to restart the entire game since, to my knowledge, there's no round version for
- While I've seen round restarts happen a lot in CSGO professional games, I don't believe those are by a simple command or two.
I've found a thread on AlliedMods [CSGO] plugin that run specified commands at round end, where there is a PHP code to automatically run commands at the end (start) of a round that are given in a file called
Question: How do I run this PHP code?
I have tried putting this is in a cfg file which I run, but the round_start.cfg and the round_end.cfg don't seem do the trick. Forgetting for now any issues as to the correctness of the code, my question is about running PHP codes in general. Do I just put them in a cfg file which I would run? Or do I have to create or edit a BSP file using Hammer or Entspy or something?