AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Thor Weapon Pickup (https://forums.alliedmods.net/showthread.php?t=298701)

EFFx 06-20-2017 18:14

Thor Weapon Pickup
 
1 Attachment(s)
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

Ayman Khaled 06-21-2017 04:40

Re: Thor Weapon Pickup
 
Gj i'm gonna test it now :D

EFFx 06-21-2017 08:16

Re: Thor Weapon Pickup
 
I appreciate you.

Natsheh 06-21-2017 09:09

Re: Thor Weapon Pickup
 
Add credits..

Ayman Khaled 06-21-2017 09:34

Re: Thor Weapon Pickup
 
can you block automatic pick up weapons and players can get gun only if they pressed E ?

RAW_192 06-21-2017 09:47

Re: Thor Weapon Pickup
 
//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

EFFx 06-21-2017 15:44

Re: Thor Weapon Pickup
 
1 Attachment(s)
Quote:

Originally Posted by RAW_192 (Post 2530347)
//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 (Post 2530337)
Add credits..

I added in the plugin, I forgot to add on the post, thank you.

Quote:

Originally Posted by Ayman Khaled (Post 2530342)
can you block automatic pick up weapons and players can get gun only if they pressed E ?

Yes, here:

Ayman Khaled 06-21-2017 20:44

Re: Thor Weapon Pickup
 
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.
http://www11.0zz0.com/2017/06/22/03/208525636.jpg

EFFx 06-21-2017 20:51

Re: Thor Weapon Pickup
 
Of course, I blocked the touch, the plugin uses the Ham_Touch .-. Doownload the fixed version.

Natsheh 06-22-2017 03:38

Re: Thor Weapon Pickup
 
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;




All times are GMT -4. The time now is 08:03.

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