AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some events (defuse, plant, boom) (https://forums.alliedmods.net/showthread.php?t=107234)

Backstabnoob 10-24-2009 11:19

Some events (defuse, plant, boom)
 
Are there events called when user plants bomb, when the bomb explodes (also, that registers what user planted it) and when user defuses the bomb?

Hawk552 10-24-2009 11:58

Re: Some events (defuse, plant, boom)
 
http://forums.alliedmods.net/showthread.php?t=40164

Hawk552 10-24-2009 12:13

Re: Some events (defuse, plant, boom)
 
PHP Code:

#include <amxmodx>
#include <cstrike>

new gMaxPlayers

public plugin_init()
{
    
gMaxPlayers get_maxplayers()
        
// register the event
}

public 
Logevent_RoundStart() 
    for ( new 
id 1moneyid <= gMaxPlayersid++ )
    {
        if ( !
is_user_aliveid ) )
            continue
        
        
money cs_get_user_moneyid )
        if ( 
money 12000 && cs_get_user_teamid ) == CS_TEAM_CT && !cs_get_user_defuseid ) )
        {
            
cs_set_user_moneyidmoney 200 )
            
cs_set_user_defuseid)
        }
    } 



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

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