AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=43)
-   -   check planting/defusing (https://forums.alliedmods.net/showthread.php?t=34485)

Emp` 09-02-2005 23:46

check planting/defusing
 
is there a way to check if the user is planting/defusing?

jtp10181 09-03-2005 00:42

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

kenshiNN 02-05-2015 05:01

Re: check planting/defusing
 
oi


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

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