AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Removing Weapons (https://forums.alliedmods.net/showthread.php?t=13131)

v3x 05-05-2005 17:46

Removing Weapons
 
How can I remove all of the weapons on the ground?

ZiP* 05-05-2005 17:57

Will the

Code:
remove_entity ( entity )

or

Code:
remove_entity_name ( Name[] )

work?

twistedeuphoria 05-05-2005 18:11

Code:
for(new inum=0;inum<512;inum++) {     if(!is_valid_ent(inum)) continue     new class[32]     entity_get_string(inum,EV_SZ_classname,class,31)     if(equali(class,"weaponbox"))         remove_entity(inum) }


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

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