AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to disable and the enable the BOMB ability on de_maps (https://forums.alliedmods.net/showthread.php?t=16964)

James 08-23-2005 19:10

How to disable and the enable the BOMB ability on de_maps
 
How to disable and the enable the BOMB ability on de_maps?
I found how disable it:
Quote:

//REMOVE BOMB - Works fine (module "engine")
for(new inum=0;inum<=get_global_int(GL_maxEntities);i num++)
{
if(!is_valid_ent(inum)) continue
new class[76]
entity_get_string(inum,EV_SZ_classname,class, 75)
if(equal(class,"func_bomb_target"))
remove_entity(inum)
}
But I need later reenable this function. Disable it only on one, knife round. If anybody tell me how disable pistols and buy in that round too, i will be glad.

Thanks for answers

XxAvalanchexX 08-23-2005 19:22

You could find who has the C4, save their weapons, strip them, and give them all back but the C4. Then the bomb is gone so no one can plant it. Alternatively, make the user drop the bomb and then disable their ability to pick it up.


All times are GMT -4. The time now is 14:17.

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