Raised This Month: $ Target: $400
 0% 

How to block weapon given in new round ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 02-13-2015 , 05:07   How to block weapon given in new round ?
Reply With Quote #1

Like the tittle said
Example: Normally, when you play some maps like de_dust2 or smt like that, you always get an USP if you are CT or Glock if you are TS at round start if you're dead in the previous round
I want to know if there is some way to block this. I don't want to use
PHP Code:
strip_user_weapons(id)
give_item(id"weapon_knife"
Is there any other way to do this guys?
__________________
Shiina.Mashiro is offline
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 02-13-2015 , 06:08   Re: How to block weapon given in new round ?
Reply With Quote #2

Why don't you want to use them. IIRC, they are by far the simplest ways.
If you want to block a specific weapon, though, you can try:
- Weapon pickup message
- Ham_Item_AttachToPlayer
- Ham_Item_AddToPlayer
__________________
Currently offline for study.

Last edited by RateX; 02-13-2015 at 06:09.
RateX is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-13-2015 , 06:15   Re: How to block weapon given in new round ?
Reply With Quote #3

I think this is what you are looking for.
https://forums.alliedmods.net/showthread.php?p=1913691
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 02-13-2015 at 06:16.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 02-13-2015 , 06:36   Re: How to block weapon given in new round ?
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#define m_iDefaultItems  120

public plugin_init()
    
RegisterHamHam_Spawn"player""ham_PlayerSpawn_Pre" );

public 
ham_PlayerSpawn_Preid )
    
set_pdata_intidm_iDefaultItems); 

Last edited by Obada; 02-13-2015 at 06:37.
Obada is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 02-13-2015 , 09:03   Re: How to block weapon given in new round ?
Reply With Quote #5

Quote:
Originally Posted by ironskillz1 View Post
I think this is what you are looking for.
https://forums.alliedmods.net/showthread.php?p=1913691
thanks bro ^^
__________________
Shiina.Mashiro 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 01:04.


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