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

check planting/defusing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-02-2005 , 23:46   check planting/defusing
Reply With Quote #1

is there a way to check if the user is planting/defusing?
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-03-2005 , 00:42  
Reply With Quote #2

if you look at the superhero core you will see a function "plugin_log"
that gets passed every log entry sent by the server. In my function I catch various events. You will see where I catch after the bomb is planted and defused. If you turn on logging in your server and plant and defuse a bomb you should be able to see what log event gets sent when a player starts to plant or defuse the bomb.

Ok I checked for planting and there is no event, but I know there is for defusing. Youd have to try and see what its called.

For the planting I know it must send some sort of server message.... hmmm lets look in one of the amxx plugins...

uhhh wow, they are natives in the CSX module. check this out

Code:
forward bomb_planting(planter); forward bomb_planted(planter); forward bomb_explode(planter,defuser); forward bomb_defusing(defuser); forward bomb_defused(defuser);

now to use that you would do this for example

Code:
public bomb_planting(id) {      server_print("Client %d is Planting the BOMB!",id) }

just include "csx" to use these. This is for AMXX only BTW
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
kenshiNN
Junior Member
Join Date: Nov 2014
Location: Panamá, Panamá
Old 02-05-2015 , 05:01   Re: check planting/defusing
Reply With Quote #3

oi
kenshiNN is offline
Reply


Thread Tools
Display Modes

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 03:13.


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