Raised This Month: $51 Target: $400
 12% 

bomb_defused function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-01-2010 , 18:26   bomb_defused function
Reply With Quote #1

for some reason my bomb_defused and my bomb_exploded functions arent working this is what i have set in my sma

Code:
#include <csx>

// Called when a user defuses the bomb
public bomb_defused( defuser )
{
	client_print( 0, print_chat, "Bomb defused" )
}

// Called when bomb explodes
public bomb_explode( planter )
{
	client_print( 0, print_chat, "Bomb exploded" )
}
of course i have my plugin_init() and other things but for some reason these 2 functions seem to not be working
whosyourdaddy is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 08-01-2010 , 18:45   Re: bomb_defused function
Reply With Quote #2

I don't know if this is any help to you but take a look:
http://forums.alliedmods.net/showthread.php?t=40164
matsi is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 08-01-2010 , 19:14   Re: bomb_defused function
Reply With Quote #3

PHP Code:
#include <fakemeta>


public plugin_init()
{
    
    
register_logevent("logevent_function_p"3"2=Defused_The_Bomb")
    
register_event("23""event_bomb_explode""a""1=17""6=-105""7=17")
    
}
// Called when a user defuses the bomb
public event_bomb_defuseddefuser )
{
    
client_print0print_chat"Bomb defused" )
}

// Called when bomb explodes
public event_bomb_explodeplanter )
{
    
client_print0print_chat"Bomb exploded" )

I've just used the link, what've matsi sent. Next time you could search for something like this.
Gadzislaw007 is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 08-01-2010 , 19:52   Re: bomb_defused function
Reply With Quote #4

actually thats now how u do it gadzis but what matsi linked did help and i did search btw
whosyourdaddy is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 08-01-2010 , 20:54   Re: bomb_defused function
Reply With Quote #5

Yeah, but I know where you got what you were thinking about:
http://www.amxmodx.org/funcwiki.php?...bomb&go=search

To use that, you have to include <csx> in your plugin.

Edit: Which you said you did...so I don't know.
RedRobster is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-02-2010 , 05:25   Re: bomb_defused function
Reply With Quote #6

Check if csx is actually loaded by typing 'amxx modules' in server console.


@Gadzislaw007
You don't really answer to 1st post, you only give an alternative.
Also, your callbacks don't match to declarations in plugin_init, and also, with a logevent you can't retrieve a player id just passing an index in the callback, read again VEN's thread.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-02-2010 at 05:28.
ConnorMcLeod is offline
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 18:35.


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