Ok, so I've been working on this for 5 days learning the language as i go. I actually got it working, here's the link:
(First)
http://pastebin.com/egrQ49pW
(Update 1)
http://pastebin.com/wSz06bP3
(Update 2)
http://pastebin.com/Epr3xp3d
(Update 3)
http://pastebin.com/d6ir8xMX
What i added/done:
* A timer that tics from 10 minutes (default) and starts the game discarding who's ready or not.
* The chat is now used for indicating players ready, it says:
- [PUG] x/10 Players are connected.
- Players not ready:
- <First Five Players> (says (None) when everyone currently connected is ready.)
- <Second Five Players>
- Type /ready in chat when you are ready.
* Changed the /notready command to /unready.
* Changed the time limit for changing your status of being ready to 3 sec instead of 15.
* (Update 1) Removed the 2min kick if player have not writen ready.
* (Update 1) Fixed a glitch with the ready system.
* (Update 2) Moved the ready system to a menu on the left side.
* (Update 3) Changed map-files location to .../maps/PUG/ so that the host can add maps for PUGs only.
* (Update 3) Disabled bomb being planted on warmup to avoid restarts.
* (Update 3) Changed mp_freezetime on warmup to 0.
Things left to be fixed/done:
* Match starting if the round ends in warmup.
* Swaping sides/map in an infinite loop if the round ends in warmup.
* Server swaps sides after 3 rounds (not confirmed, can't test it since my ports are closed).
* Remove errors showing in the sever cmd.
* (If in any way possible) Make the menu unclickable so that a player can switch between weapons without closing the menu first.
Please tell me if there's more so i can check if i can fix it.
Anyone who understands pawn, feel free to send me some code sugestions and I'll try it out.