AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Making weapons pickuple (https://forums.alliedmods.net/showthread.php?t=121689)

KadiR 03-18-2010 17:44

Making weapons pickuple
 
I am using this code:

PHP Code:

        new iEnt
        
while( (iEnt find_ent_by_class(iEnt"armoury_entity")) > )
        {
            
entity_set_int(iEntEV_INT_effectsentity_get_int(iEntEV_INT_effects) | EF_NODRAW)
            
entity_set_int(iEntEV_INT_solidSOLID_NOT)
        }
        while( (
iEnt find_ent_by_class(iEnt"weaponbox")) > )
        {
            
entity_set_int(iEntEV_INT_flagsFL_KILLME)
            
call_think(iEnt)
        }

public 
WeaponBox_Spawn_PostiEnt )
{
    
entity_set_int(iEntEV_INT_flagsFL_KILLME)
    
call_think(iEnt)


Well, this does remove the weapons from the ground. I would like to know how to make it, that it should appear again on roundstart + dropping the weapons from the alive players when those guns from the ground gets removed.


All times are GMT -4. The time now is 08:35.

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