AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Removing weapons (https://forums.alliedmods.net/showthread.php?t=170924)

Dark Style 10-30-2011 11:49

Removing weapons
 
How can I remove weapons gived from map?

For exemple: awp_india give awp, how can I remove this ?

Bugsy 10-30-2011 11:56

Re: Removing weapons
 
Do players start with awp or is awp laying on ground (armoury_entity)?

Dark Style 10-30-2011 11:56

Re: Removing weapons
 
start with awp

Bugsy 10-30-2011 12:04

Re: Removing weapons
 
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.

Dark Style 10-30-2011 12:06

Re: Removing weapons
 
remove before start round or when player spawn ?

Bugsy 10-30-2011 13:32

Re: Removing weapons
 
Quote:

Originally Posted by Dark Style (Post 1586510)
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;




All times are GMT -4. The time now is 14:23.

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