Hi
Could anybody show me the script which will ~2 seconds before end round transfer 2 CTs to Terrorist and 2 Terrors to CT.
My script it is killing them and it happens when the new round begins.
Code:
// Prepare teams
get_players(players, cts, "e", "CT");
if (cts > cats)
{
// Move CTs to Ts if there are enough 'cats' (CTs)
for (i=cats; i<cts; i++)
{
if (hasdbg) { client_print(0,print_chat,"* H&S[init]: Already enough CTs"); server_print("* H&S[init]: Already enough CTs"); }
setteam(players[i], "1");
}
}
else if (cts < cats)
{
// Move Ts to CTs if there ar not enough 'cats' (CTs)
get_players(players, pnum, "e", "TERRORIST");
for (i=0; cts<cats && i<pnum; i++)
{
if (hasdbg) { client_print(0,print_chat,"* H&S[init]: Need more CTs"); server_print("* H&S[init]: Need more CTs"); }
setteam(players[i], "2");
cts ++;
}
}
That is the plugin which i'm trying to recoded :>
http://forums.alliedmods.net/showthr...highlight=Seek