AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bomb explode & hostage rescue event (https://forums.alliedmods.net/showthread.php?t=17379)

nightscreem 08-30-2005 17:18

Bomb explode & hostage rescue event
 
how can i check when the bomb explode

v3x 08-30-2005 17:27

Method 1:
Code:
register_event("23","Event_TargetBombed","a","1=17","6=-105","7=17");
Method 2:

In your plugin_init put this:
Code:
register_event("SendAudio","Event_BombPlanted","a","2&%!MRAD_BOMBPL"); register_event("SendAudio","RemoveBombTask","a","2&%!MRAD_BOMBDEF"); register_logevent("RemoveBombTask",2,"0=World triggered","1=Round_End");
Then make 2 functions like so:
Code:
public Event_BombPlanted() {     set_task(get_cvar_float("mp_c4timer"),"BombExploded",3821); } public RemoveBombTask() {     if(task_exists(3821))         remove_task(3821); }
Then make another function for when the bomb goes off:
Code:
public BombExploded() {     client_print(0,print_chat,"The bomb has exploded"); }
I think that'd work ;)

nightscreem 08-30-2005 20:43

oh k thx v3x i searched in meta game but couldn't find anything how did
you find this

v3x 08-30-2005 20:46

Found the first event from a search, and the rest from various plugins of mine..

nightscreem 08-31-2005 11:26

how to get the hostage rescue event
so when all hostages are rescued they ct's get a message
i searched for hostage rescue event but couldn't find anything :(

nightscreem 09-01-2005 11:39

someone pls i need this badly :(

XxAvalanchexX 09-01-2005 14:09

Code:
register_event("TextMsg","host_res","a","2&#All_Hostages_R");

nightscreem 09-01-2005 19:35

oh ok thx
how did you know this

XxAvalanchexX 09-01-2005 23:26

There was an event announcer for AMX(notx) and I looked at the source to see how they hooked it.

nightscreem 09-02-2005 12:48

oh k thx :wink:


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

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