Raised This Month: $ Target: $400
 0% 

How to transfer players without killing them?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tramp
Senior Member
Join Date: Aug 2005
Old 03-06-2008 , 13:27   How to transfer players without killing them?
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (hide-and-seek.sma - 647 views - 23.2 KB)
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-06-2008 , 14:19   Re: How to transfer players without killing them?
Reply With Quote #2

cs_set_user_team()
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 21:08.


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