AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DeathMsg question (https://forums.alliedmods.net/showthread.php?t=209881)

Kard1nal 03-03-2013 06:08

DeathMsg question
 
So, I've got register_event("DeathMsg", "deatha", "a") in my plugin, but I need to not execute it if player was killed by user_silentkill.
Is it possible?

ConnorMcLeod 03-03-2013 06:11

Re: DeathMsg question
 
Are both code in the same plugin ?

In that casen just set a global bool variable on true before you use silentkill, and set it back to false after.
In DeathMsg callback, check that global variable.

Kard1nal 03-03-2013 06:15

Re: DeathMsg question
 
Already thought about it, but no, it's different plugins...
So there is no another way and I have to knock it into one. :D
Thank you.

ConnorMcLeod 03-03-2013 06:47

Re: DeathMsg question
 
You can create a public variable in one plugin, then use ***_xvar_*** natives.


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

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