AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove an entity (https://forums.alliedmods.net/showthread.php?t=193013)

Aooka 08-15-2012 17:48

Remove an entity
 
Hello guys :p

I have doing this plugin wich do not work :
Code:
#include < amxmodx > #include < engine > public plugin_init( ) {     register_plugin( "remove Flashbang" , "1.0" , "Aooka" );         register_event( "HLTV" , "evNewRound" , "be" ); } public evNewRound( ) {     new const iEnt = find_ent_by_class( - 1 , "flashbang" );         while( iEnt < 0 )         remove_entity( iEnt ); }

It's just to remove all the flashbang on the ground at the begining of all the round.

Someone have an idears ?:)

ConnorMcLeod 08-15-2012 17:50

Re: Remove an entity
 
Event doesn't exist, such classname doesn't exist.
In default cs, ground weapons are all removed at new round, if you use standart cs routine, classnames etc.. you shouldn't have to remove entities.
Which plugin is this ?

Exolent[jNr] 08-15-2012 17:50

Re: Remove an entity
 
You mean the flashbangs that you can pickup?

Aooka 08-15-2012 17:54

Re: Remove an entity
 
You know the map $2000$, they are a flashbang at the center. I just want in fact to remove it.

Exolent[jNr] 08-15-2012 17:58

Re: Remove an entity
 
Loop through all weaponbox entities and check if they contain a flashbang.
If that entity does contain a flashbang, remove it.

ConnorMcLeod 08-15-2012 18:05

Re: Remove an entity
 
http://forums.alliedmods.net/showthread.php?p=458317

Settings (and edition) here : http://forums.alliedmods.net/showpos...2&postcount=33


All times are GMT -4. The time now is 05:44.

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