AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   C4 must be planted at a bomb site! (https://forums.alliedmods.net/showthread.php?t=159967)

fearAR 06-23-2011 20:43

C4 must be planted at a bomb site!
 
Hi, I am doing a detonator with weapon C4, but when I am crouched and I have C4 in hands, and I press +ATTACK button, In middle of screen appear:

"C4 must be planted at a bomb site!"

But when I am stand, and My weapon is the C4 and I press +ATTACK button, the message doesn't appear.

I want to delete it because when the weapon in hands is C4 and I press +attack button, I throw an entity to floor, and when message appears, I can't throw it.

I was reading the Bazooka Mod plugin, but I can't find the part where He eliminates or prevents this message.

Thanks

nikhilgupta345 06-24-2011 01:19

Re: C4 must be planted at a bomb site!
 
Register user "TextMsg" messageid, and then check the message hooked is the correct message. Return PLUGIN_HANDLED to prevent the message from showing up.

ConnorMcLeod 06-24-2011 01:41

Re: C4 must be planted at a bomb site!
 
Show your code.

fearAR 06-24-2011 11:39

Re: C4 must be planted at a bomb site!
 
but I don't want to return message only, I want to return all the function, because It blocks me to throw a explosive when I am ducking.

nikhilgupta345 06-24-2011 11:42

Re: C4 must be planted at a bomb site!
 
Take a look at the code from this plugin, which allows you to plant anywhere. It may help you.
http://forums.alliedmods.net/showthread.php?p=143402


All times are GMT -4. The time now is 23:24.

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