PDA

View Full Version : Team ratio (not JB)


im_the_new_guy
01-23-2017, 19:11
Hi all,

I have been looking for a team ratio script for use in CS:GO. Every script that I have come across has been for JB (limits CT team), but I am after a script that limits the T team at a 1:3 ratio.

The ratio is for use in the Marines VS Predators game, and the predators are Ts.

I have tried to learn Sourcepawn but I can't seem to wrap my head around it enough to edit an existing ratio script.

Any help would be greatly appreciated.

Cheers.

OciXCrom
01-24-2017, 08:24
You won't learn SourcePawn by posting in the AMXX Pawn section.

Hectik17
01-24-2017, 15:55
A 1.6 standalone team lock spluging wound be in my high pryoritys. Aaamost of the ones are broke no a new one woul be very hlepfull. Pleeeeeeees help . Fyi they are hard to get

OciXCrom
01-24-2017, 15:58
A 1.6 standalone team lock spluging wound be in my high pryoritys. Aaamost of the ones are broke no a new one woul be very hlepfull. Pleeeeeeees help . Fyi they are hard to get

U hiiiiiigh brooooo?

edon1337
01-24-2017, 17:21
A 1.6 standalone team lock spluging wound be in my high pryoritys. Aaamost of the ones are broke no a new one woul be very hlepfull. Pleeeeeeees help . Fyi they are hard to get

wot

Hectik17
01-30-2017, 11:17
wot

I need
A 5v5 lock pluging so
When lo3 specs cant stack
And spec are only able to join t or ct it a player drops

Ie 4v5 then a spec can join to make the teams even 5v5

And if a s0ec trys to join once the teams are at 5v5 they cant join because the plugin stops stacking. You dig? Atm nothing out there works. 2 years ive been searchig. And i need it to be light with no othe pug pluging bs. Just simple team lock or limit

Hectik17
01-30-2017, 11:18
Yes i am high fiy

EFFx
01-30-2017, 11:19
Did you read what OxiCrom said?

Hectik17
01-30-2017, 11:24
Did you read what OxiCrom said?

yes i did read what he said

effx your plugin had errors and bugs, teams could hear each others voice com and couldn't swap teams at Halftime.

i need this for goldsorce HL cs 1.6 amxx

EFFx
01-30-2017, 11:35
And did you see the author of the thread? Its not you.

OciXCrom
01-30-2017, 11:39
At least he admits that he's high.

Hectik17
01-30-2017, 11:40
:D

anyone can edit this to work ?

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Team limiter"
#define VERSION "1.0"
#define AUTHOR "EFFx"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("jointeam","PugJoinTeam")
}
public PugJoinTeam(id)
{
new sArg[3];
read_argv(1,sArg,charsmax(sArg));
return PugCheckTeam(id,str_to_num(sArg));
}
public PugTeamSelect(id,iKey) return PugCheckTeam(id,iKey + 1);
public PugCheckTeam(id,iTeamNew)
{
switch(iTeamNew)
{
case 1,2,5:
{
new iPlayers[32],iNum[CsTeams];
get_players(iPlayers,iNum[CS_TEAM_T],"eh","TERRORIST");
get_players(iPlayers,iNum[CS_TEAM_CT],"eh","CT");

if((iNum[CS_TEAM_T] >= 5) && (iTeamNew == 1) || (iTeamNew == 5))
{
pug_chatcolor(id,"This team is already full!");
client_cmd(id,"speak buttons/blip2")
engclient_cmd(id,"chooseteam")
return PLUGIN_HANDLED
}
else if((iNum[CS_TEAM_CT] >= 5) && (iTeamNew == 2) || (iTeamNew == 5))
{
pug_chatcolor(id,"This team is already full!");
client_cmd(id,"speak buttons/blip2")
engclient_cmd(id,"chooseteam")
return PLUGIN_HANDLED
}
}
}
return PLUGIN_CONTINUE
}
stock pug_chatcolor(const id, const input[], any:...)
{
new count = 1, players[ 32 ]
static msg[ 191 ]
vformat( msg, 190, input, 3 )
format(msg,sizeof msg,"!g[PugMod]!y: %s",msg)

replace_all( msg, 190, "!g", "^4" )
replace_all( msg, 190, "!y", "^1" )
replace_all( msg, 190, "!t", "^3" )

if(id) players[ 0 ] = id; else get_players( players, count, "ch" )
{
for(new i = 0; i < count; i++)
{
if( is_user_connected( players[ i ] ) )
{
message_begin( MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[ i ] )
write_byte( players[ i ] )
write_string( msg )
message_end( )
}
}
}
}

im_the_new_guy
02-02-2017, 00:40
Ahh sorry I have no idea what the difference between AMX and Sourcepawn is. I am from eventscripts world lol.

Any help on this for CSGO would be appreciated :)