Gather plugin
Hello!
I am in the making of writing a gather plugin. I know C pretty well, and I recently started learning SmallC. I have written a bit of the gather plugin, but I am not sure if the current code is correct and how to proceed with the remaining tasks. All and any help will be much appreciated. These are the tasks that the plugin should do. * Firstly, a player with any access needs to call the function by typing "amx_gather" in the console. * The plugin should then do nothing but wait for 10 players to join the server. If there already are 10 players on the server or when the player counter has reached 10, the plugin should then do a map vote to decide what map to play during the gather. * If the wanted map is the current map, no change should be made. Otherwise, the plugin should change to the wanted map. * Once the map has been decided, all players needs to type "ready" in the public chat (or the console). * Once all 10 players has typed "ready", a match configuration file should be executed and the game should start. * The plugin needs to monitor the rounds that has been played and temporarily stop the gather once 15 rounds has been played (for the second half). * Once again, the players needs to type "ready" in the console to make sure that everyone is at the computer by the time the second half should start (to make sure that no one has gone for a drink or toilet :)). * Finally, the plugin should restart the round a couple of times and then announce that the second half is live. Once the second half is finished, it should also be announced that the gather is over. The code below covers some of these tasks, but not all. There are bugs and missing tasks in the code below, but unfortunately, I am not sure what to do about it. Please point out a code, reference or a suggestion. Note: Anyone is welcome to write some code for or with me as I am a newbie with SmallC and AMX Mod X plugin programming in general (this is my first attempt to develop a plugin), but if you do, please give a brief description of what the code you wrote does, so I learn. Code:
/*Regards, Sebastian Andersson |
and the sense of "the gather" is?
|
Quote:
|
what is "the gather"? all it should do is play 15 rounds with 10 players twice?
|
Quote:
|
i know that it's for CS, i just like to understand what you're actually
aiming for with this plugin. what happens after the two 15 rounds? sorry, but i really have no clue what this plugin could be usefull for besides doing nothing if players leave while playing so you don't have 10 "ready"s anymore for the second half :wink: |
Quote:
Quote:
The purpose of this plugin is as described above, provide an easier way to gather together (for me and my friends). We run AMXX and a plugin for a gather is something that we all wanted. |
| All times are GMT -4. The time now is 10:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.