Raised This Month: $51 Target: $400
 12% 

How to remove Hostages and Bomb in one round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-04-2008 , 07:41   How to remove Hostages and Bomb in one round?
Reply With Quote #1

Tryed to use raydan's code:
Code:
stock RemoveMapObj()
{
	decl maxent,i;
	decl String:Class[65];
	maxent = GetMaxEntities();
	for (i=0;i<=maxent;i++)
	{
		if(IsValidEdict(i) && IsValidEntity(i))
		{
			GetEdictClassname(i, Class, sizeof(Class));
			if(StrContains("func_bomb_target_hostage_entity_func_hostage_rescue",Class) != -1)
			{
				RemoveEdict(i);
			}
		}
	}
}
It works well but it completly removes hostages and bomb.
The problem is that I need them back after round restart.
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 08-04-2008 at 08:18.
exvel is offline
Send a message via ICQ to exvel
raydan
Senior Member
Join Date: Aug 2006
Old 08-04-2008 , 08:50   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #2

there entity won't come back after round restart!

may be hostage can
raydan is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-04-2008 , 09:02   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #3

ahrrr... so, is there an another way to remove hostages?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
raydan
Senior Member
Join Date: Aug 2006
Old 08-04-2008 , 11:26   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #4

remove hostage at OnMapStart(), then restart round, see hostages are still there or not
raydan is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-04-2008 , 11:28   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #5

There are no hostages after round restart.
Or what you mean in "remove hosatges"? Another method?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 08-05-2008 , 02:05   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #6

Move the hostage to a location where they can't be touch/used. As for bomb You can just remove the bomb from the player and remove that.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-05-2008 , 07:12   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #7

teame06, thanks. But how can I do it?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-05-2008 , 07:47   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #8

Used this code:
Code:
new Float:TeleportVector[3] = {0.0,0.0,0.0};
TeleportEntity(i, TeleportVector, NULL_VECTOR, NULL_VECTOR);
This code teleported hostages somewhere but on new round start they didn't come back.

p.s. also tried
TeleportVector[3] = {1.0, 1.0, 1.0};
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 08-05-2008 at 07:49.
exvel is offline
Send a message via ICQ to exvel
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-05-2008 , 08:05   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #9

LOOOL, i am nub ))
Didn't disable Stripper Source
The code in the first post works perfect.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-05-2008 , 14:02   Re: How to remove Hostages and Bomb in one round?
Reply With Quote #10

In my HideNSeek plugin I just remove the hostage_entity every round. As for the bomb, I just strip their 5th slot.
bl4nk 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 11:00.


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