Raised This Month: $ Target: $400
 0% 

C4 must be planted at a bomb site!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fearAR
Veteran Member
Join Date: Oct 2010
Old 06-23-2011 , 20:43   C4 must be planted at a bomb site!
Reply With Quote #1

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
fearAR is offline
Send a message via MSN to fearAR
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 06-24-2011 , 01:19   Re: C4 must be planted at a bomb site!
Reply With Quote #2

Register user "TextMsg" messageid, and then check the message hooked is the correct message. Return PLUGIN_HANDLED to prevent the message from showing up.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 06-24-2011 at 01:42.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-24-2011 , 01:41   Re: C4 must be planted at a bomb site!
Reply With Quote #3

Show your code.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fearAR
Veteran Member
Join Date: Oct 2010
Old 06-24-2011 , 11:39   Re: C4 must be planted at a bomb site!
Reply With Quote #4

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.
fearAR is offline
Send a message via MSN to fearAR
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 06-24-2011 , 11:42   Re: C4 must be planted at a bomb site!
Reply With Quote #5

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
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply



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 23:24.


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