Raised This Month: $ Target: $400
 0% 

Weapon Pickup Block


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 08-05-2010 , 00:23   Re: Weapon Pickup Block
Reply With Quote #1

Quote:
Originally Posted by GXLZPGX View Post
I've tried like 6 methods and it still hasn't worked. The bool doesn't have an index, but I'm sure thats not the problem. I have it set the bool to true whenever an LR(last request) is in progress. So it SHOULD block it if gLastRequest is true. I don't have a clue whats wrong.
I tested it myself and that last method definitely works.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-05-2010 , 00:28   Re: Weapon Pickup Block
Reply With Quote #2

Quote:
Originally Posted by DarkGod View Post
I tested it myself and that last method definitely works.
If you'd like I'll give you the whole code on pastebin. Hold on.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-05-2010 , 04:31   Re: Weapon Pickup Block
Reply With Quote #3

Quote:
Originally Posted by GXLZPGX View Post
If you'd like I'll give you the whole code on pastebin. Hold on.
Code:
#include amxmodx #include hamsandwich new g_LastRequest; public plugin_init( ) {     register_plugin .plugin_name = "No Weapon Pickup", .version = "1.0", .author = "xPaw";         register_clcmd .client_cmd = "say /lol", .function = "Cmd";         RegisterHam .function = Ham_Touch, .EntityClass = "weaponbox", .Callback = "FwdHamPlayerWeaponTouch";     RegisterHam .function = Ham_Touch, .EntityClass = "armoury_entity", .Callback = "FwdHamPlayerWeaponTouch"; } public Cmd( const id )     g_LastRequest = !g_LastRequest; public FwdHamPlayerWeaponTouch( const iEntity, const id )     return g_LastRequest ? HAM_SUPERCEDE : HAM_IGNORED;
__________________
xPaw is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-05-2010 , 06:57   Re: Weapon Pickup Block
Reply With Quote #4

Wow, all this trouble for no reason. The reason why it wouldn't work is because I had in plugin_init, a set_task, but I forgot to place the function that was used in the set_task inside the plugin! So it didn't continue!

Thanks all for your help!
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.

Last edited by GXLZPGX; 08-05-2010 at 07:11.
GXLZPGX is offline
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 00:08.


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