AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Events] (https://forums.alliedmods.net/showthread.php?t=113129)

ProIcons 12-23-2009 16:07

[Events]
 
// Bomb defused event
register_logevent("logevent_function_p", 3, "2=Defused_The_Bomb")
// Target bombed (right before round end) event
register_logevent("logevent_function", 6, "3=Target_Bombed")


How CAN i find the DEFUSER
How CAN i find the PLANTER


AND how can i remove the C4 for a round

Mxnn 12-23-2009 16:20

Re: [Events]
 
PHP Code:

public bomb_planted(planter) {
}

public 
bomb_defused (defuser) {


For more info:
http://www.amxmodx.org/funcwiki.php?go=func&id=900
&&
http://www.amxmodx.org/funcwiki.php?go=func&id=903

platzpatrone 12-23-2009 16:29

Re: [Events]
 
to remove bomb:

PHP Code:

public remove_bomb()
{
        new 
g_MaxClients get_maxplayers ();
    
        for ( new 
1<= g_MaxClients; ++)
        {
            
engclient_cmd(i"drop""weapon_c4")
        }

        new 
weapboxbomb fm_find_ent_by_class(-1"weapon_c4")
        if (
bomb && (weapbox pev(bombpev_owner)) > get_maxplayers()) {
            
dllfunc(DLLFunc_Thinkweapbox// will remove weaponbox + weapon_c4 entity pair
            // remove blinking red bomb mark on the radar
            
message_begin(MSG_ALLget_user_msgid("BombPickup"))
            
message_end()
        }    



Mxnn 12-23-2009 17:56

Re: [Events]
 
fm_find_ent_by_class(-1, "weapon_c4")
?
I included fakemete and didn't work..

You forgot to put the function?

Exolent[jNr] 12-23-2009 17:58

Re: [Events]
 
Quote:

Originally Posted by Mxnn (Post 1028900)
fm_find_ent_by_class(-1, "weapon_c4")
?
I included fakemete and didn't work..

You forgot to put the function?

#include <fakemeta_util>

matsi 12-24-2009 05:39

Re: [Events]
 
http://forums.alliedmods.net/showthread.php?t=40164

ProIcons 12-24-2009 17:51

Re: [Events]
 
L 12/25/2009 - 00:50:06: [FAKEMETA] Invalid entity
L 12/25/2009 - 00:50:06: [AMXX] Displaying debug trace (plugin "gather.amxx")
L 12/25/2009 - 00:50:06: [AMXX] Run time error 10: native error (native "dllfunc")
L 12/25/2009 - 00:50:06: [AMXX] [0] Gather.sma::remove_bomb (line 1336)
L 12/25/2009 - 00:50:06: [AMXX] [1] Gather.sma::RSZ (line 154)

ProIcons 11-24-2010 16:44

Re: [Events]
 
Bump

Exolent[jNr] 11-24-2010 16:49

Re: [Events]
 
What part of the thread are you bumping for? Remove bomb? Events?

ProIcons 11-25-2010 02:59

Re: [Events]
 
Why i am getting this error from my server?


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

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