Raised This Month: $12 Target: $400
 3% 

Thor Weapon Pickup


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-20-2017 , 18:14   Thor Weapon Pickup
Reply With Quote #1

THOR WEAPON PICKUP v1.1



Plugin release: 06/20/2017
Last plugin update: 08/29/2018


- Description
- This plugin allow players to pickup the dropped weapon with E button (+use) from a certain distance.

- CREDITS
- ProSToTeM@ for the code.

- CHANGE LOG
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (ThorWeaponPickup.sma - 1040 views - 4.7 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 08-29-2019 at 18:14.
EFFx is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 06-21-2017 , 04:40   Re: Thor Weapon Pickup
Reply With Quote #2

Gj i'm gonna test it now
__________________
Ayman Khaled is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 08:16   Re: Thor Weapon Pickup
Reply With Quote #3

I appreciate you.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-21-2017 , 09:09   Re: Thor Weapon Pickup
Reply With Quote #4

Add credits..
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 06-21-2017 , 09:34   Re: Thor Weapon Pickup
Reply With Quote #5

can you block automatic pick up weapons and players can get gun only if they pressed E ?
__________________
Ayman Khaled is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 06-21-2017 , 09:47   Re: Thor Weapon Pickup
Reply With Quote #6

//Compiler\ThorWeaponPickup.sma(64) : error 017: undefined symbol "MAX_PLAYERS"
// ThorWeaponPickup.sma(65) : error 017: undefined symbol "szClassName"
// Compiler\ThorWeaponPickup.sma(65) : error 072: "sizeof" operator is invalid on "function" symbols
//ompiler\Compiler\ThorWeaponPickup.sma(65) : error 029: invalid expression, assumed zero
// Coding\Compiler\Compiler\ThorWeaponPickup.sma (65) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 5 Errors.
// Could not locate output file compiled\ThorWeaponPickup.amx (compile failed).
//
// Compilation Time: 0.83 sec
// ----------------------------------------


These errors while compiling locally

Last edited by RAW_192; 06-21-2017 at 09:47.
RAW_192 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 15:44   Re: Thor Weapon Pickup
Reply With Quote #7

Quote:
Originally Posted by RAW_192 View Post
//Compiler\ThorWeaponPickup.sma(64) : error 017: undefined symbol "MAX_PLAYERS"
// ThorWeaponPickup.sma(65) : error 017: undefined symbol "szClassName"
// Compiler\ThorWeaponPickup.sma(65) : error 072: "sizeof" operator is invalid on "function" symbols
//ompiler\Compiler\ThorWeaponPickup.sma(65) : error 029: invalid expression, assumed zero
// Coding\Compiler\Compiler\ThorWeaponPickup.sma (65) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 5 Errors.
// Could not locate output file compiled\ThorWeaponPickup.amx (compile failed).
//
// Compilation Time: 0.83 sec
// ----------------------------------------


These errors while compiling locally
Try again, I fixed it

Quote:
Originally Posted by Natsheh View Post
Add credits..
I added in the plugin, I forgot to add on the post, thank you.

Quote:
Originally Posted by Ayman Khaled View Post
can you block automatic pick up weapons and players can get gun only if they pressed E ?
Yes, here:
Attached Files
File Type: sma Get Plugin or Get Source (ThorWeaponPickup.sma - 908 views - 5.2 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-21-2017 at 20:51.
EFFx is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 06-21-2017 , 20:44   Re: Thor Weapon Pickup
Reply With Quote #8

bug:
you can't pick up it with e button
+ wrong info that glock was mine and it print that it was bot's glock.
__________________
Ayman Khaled is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-21-2017 , 20:51   Re: Thor Weapon Pickup
Reply With Quote #9

Of course, I blocked the touch, the plugin uses the Ham_Touch .-. Doownload the fixed version.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-22-2017 , 03:38   Re: Thor Weapon Pickup
Reply With Quote #10

PHP Code:
public TouchWeapons(iWeaponid)
{
    if(!
get_pcvar_num(pCvarBlockPickup))) you can save it in round start in global array... And check...
        return 
FMRES_IGNORED
        
    
if(!is_user_connected(id)) not a nesscary check...
        return 
HAM_IGNORED
        
    
new szModel[MAX_PLAYERS]
    
pev(iWeaponpev_modelszModelcharsmax(szModel))
        
    if(
containi(szModel"w_backpack") != -1)....  This is not needed..
    return 
HAM_SUPERCEDE;

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

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 07:52.


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