Raised This Month: $32 Target: $400
 8% 

Solved BlockWeaponsPickUp.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AkioDono
Junior Member
Join Date: Feb 2018
Old 02-19-2018 , 14:12   BlockWeaponsPickUp.
Reply With Quote #1

Solved, thank you very much who helped me.

Last edited by AkioDono; 02-20-2018 at 18:06.
AkioDono is offline
Old 02-19-2018, 14:42
raizo11
This message has been deleted by raizo11.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2018 , 15:14   Re: Weaponspickup
Reply With Quote #2

Simply hook weapon touch and block it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 02-19-2018, 16:12
AkioDono
This message has been deleted by AkioDono.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-19-2018 , 17:59   Re: Weaponspickup
Reply With Quote #3

Don't use drop, simply return HAM_SUPERCEDE.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-20-2018 , 12:11   Re: Weaponspickup
Reply With Quote #4

1st parameter is the entity is and not a player id
__________________
@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
Old 02-20-2018, 12:34
AkioDono
This message has been deleted by AkioDono.
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2018 , 12:39   Re: Weaponspickup
Reply With Quote #5

Quote:
1st parameter is the entity is and not a player id
public bpuwft(iEnt, id)

HAM_IGNORED, not PLUGIN_CONITUNUE. Just search, it's been done many times.
__________________

Last edited by OciXCrom; 02-20-2018 at 12:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AkioDono
Junior Member
Join Date: Feb 2018
Old 02-20-2018 , 12:45   Re: Weaponspickup
Reply With Quote #6

I'm a beginner, so don't blame me.. and I searched a lot to create this simple code, you know!

Last edited by AkioDono; 02-20-2018 at 12:46.
AkioDono is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2018 , 13:09   Re: BlockWeaponsPickUp, thanks for Natsheh and Oxicrom.
Reply With Quote #7

Code:
if(cs_get_user_team(iEnt) == CS_TEAM_T)

You're checking the entity's team?!
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AkioDono
Junior Member
Join Date: Feb 2018
Old 02-20-2018 , 13:15   Re: BlockWeaponsPickUp, thanks for Natsheh and Oxicrom.
Reply With Quote #8

yes, is there any mistake, if yes please correct it to me.
AkioDono is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-20-2018 , 13:22   Re: BlockWeaponsPickUp, thanks for Natsheh and Oxicrom.
Reply With Quote #9

id = the player that's touching the weapon
iEnt = the weapon that is being touched

Code:
if(cs_get_user_team(iEnt) == CS_TEAM_T)

The mistake is quite obvious.
__________________

Last edited by OciXCrom; 02-20-2018 at 13:22.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AkioDono
Junior Member
Join Date: Feb 2018
Old 02-20-2018 , 13:25   Re: BlockWeaponsPickUp, thanks for Natsheh and Oxicrom.
Reply With Quote #10

Hmm, I don't know, but... I just want the terrorists players can't take weapons by touch, and by commands in console also.
AkioDono 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 15:07.


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