Raised This Month: $ Target: $400
 0% 

Some events (defuse, plant, boom)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-24-2009 , 11:19   Some events (defuse, plant, boom)
Reply With Quote #1

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?
Backstabnoob is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-24-2009 , 11:58   Re: Some events (defuse, plant, boom)
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=40164
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-24-2009 , 12:13   Re: Some events (defuse, plant, boom)
Reply With Quote #3

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)
        }
    } 
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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