Raised This Month: $404 Target: $400
 101% 

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: SP, Brazil
Old 06-20-2017 , 18:14   Thor Weapon Pickup
Reply With Quote #1

THOR WEAPON PICKUP v1.0



Plugin release: 06/20/2017
Last plugin update: 06/20/2017


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

- CREDITS
- [email protected] for the code.

- CHANGE LOG
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (ThorWeaponPickup.sma - 464 views - 4.5 KB)
__________________

Last edited by EFFx; 06-21-2017 at 15:38.
EFFx is offline
Send a message via Skype™ to EFFx
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: SP, Brazil
Old 06-21-2017 , 08:16   Re: Thor Weapon Pickup
Reply With Quote #3

I appreciate you.
__________________
EFFx is offline
Send a message via Skype™ to EFFx
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
Old 06-21-2017 , 09:09   Re: Thor Weapon Pickup
Reply With Quote #4

Add credits..
__________________
@Jailbreak API MODE 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !

@Arena Mod 90% done !

Gaming Districts Community
Donate
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: SP, Brazil
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 - 230 views - 5.2 KB)
__________________

Last edited by EFFx; 06-21-2017 at 20:51.
EFFx is offline
Send a message via Skype™ to EFFx
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: SP, Brazil
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.
__________________
EFFx is offline
Send a message via Skype™ to EFFx
Natsheh
Veteran Member
Join Date: Sep 2012
Location: Muslim and proud!
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 API MODE 100% done !
@User Tag Prefix 100% done !
@Mystery Box 100% done !

@Arena Mod 90% done !

Gaming Districts Community
Donate
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 23:56.


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