Kinda New Here
I've pretty much read and read through lots of tutorials on the basics of scripting for amxx files. I've also looked through lots of sources that others have posted. I am wondering how people know what commands do what.
I am looking to build a mod to ratio out people but not a balancer. I want to change like the ratio from 3 CTs for ever T. I have no idea what cvar that would be listed under, or if there even is a cvar to make for that. EDIT: I want to make this myself, so it would be helpful to give me pointers/advice/tutorials to help me further my knowledge |
Re: Kinda New Here
Well, welcome to the jungle.
As for your questions on commands, I'd suggest checking out the funcwiki. For your plugin, I'd recommend creating an array and sorting players in a for loop based on the array. For example: Code:
If you don't understand anything from that example, let me know and I'll explain it. Also, you shouldn't use the exact above method, you'll want to add in something in the for loop to randomize the players instead of doing it in the same order every time. |
Re: Kinda New Here
First, I would like to thank you for that wonderful link.
What I understand from that method is that players are sorted when they join the server. First player becomes T, Next three that join become CT. What I'm looking for is, people are allowed to choose the team they want to be in, but are restricted is the team limit reaches a certain ratio. So I'm trying to make something in the general vicinity of (Attemping to ratio 2 CTS : T) if CT /2 +2 < T negate moving to T? EDIT: My main goal. When someone joins the server and selects a team, the mod checks the ratio using a mathematical system above. If the team has reached ratio limit, to force join the other team. |
| All times are GMT -4. The time now is 00:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.