Raised This Month: $ Target: $400
 0% 

Kinda New Here


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kantel
Junior Member
Join Date: Jul 2010
Location: SoCal
Old 07-26-2010 , 02:03   Kinda New Here
Reply With Quote #1

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

Last edited by Kantel; 07-26-2010 at 02:14.
Kantel is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-26-2010 , 02:40   Re: Kinda New Here
Reply With Quote #2

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:
new const CsTeams:Sorting[4] = {     CS_TEAM_T,     CS_TEAM_CT,     CS_TEAM_CT,     CS_TEAM_CT } new position new iPlayers[32] new iNum get_players( iPlayers, iNum ) new id for( new i = 0; i < iNum; i++ ) {    cs_set_user_team( iPlayers[i], Sorting[position++] ) }

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.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Kantel
Junior Member
Join Date: Jul 2010
Location: SoCal
Old 07-26-2010 , 03:15   Re: Kinda New Here
Reply With Quote #3

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.

Last edited by Kantel; 07-26-2010 at 03:18.
Kantel is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode