Raised This Month: $ Target: $400
 0% 

Removing weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 10-30-2011 , 11:49   Removing weapons
Reply With Quote #1

How can I remove weapons gived from map?

For exemple: awp_india give awp, how can I remove this ?
Dark Style is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-30-2011 , 11:56   Re: Removing weapons
Reply With Quote #2

Do players start with awp or is awp laying on ground (armoury_entity)?
__________________
Bugsy is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 10-30-2011 , 11:56   Re: Removing weapons
Reply With Quote #3

start with awp
Dark Style is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-30-2011 , 12:04   Re: Removing weapons
Reply With Quote #4

http://forums.alliedmods.net/showpos...7&postcount=42

Can be done multiple ways, ham_addplayeritem, if item is awp then supercede might be easiest/less code.
__________________

Last edited by Bugsy; 10-30-2011 at 12:08.
Bugsy is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 10-30-2011 , 12:06   Re: Removing weapons
Reply With Quote #5

remove before start round or when player spawn ?
Dark Style is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-30-2011 , 13:32   Re: Removing weapons
Reply With Quote #6

Quote:
Originally Posted by Dark Style View Post
remove before start round or when player spawn ?
You should add map checking or only have this plugin running on that map(s) that you desire because this will always block awp from spawning.
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() 
{
    
RegisterHamHam_Spawn "weapon_awp" "AwpSpawn" );
}

public 
AwpSpawniEntity )
{
    return 
HAM_SUPERCEDE;

__________________

Last edited by Bugsy; 10-30-2011 at 13:34.
Bugsy 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 14:23.


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