Raised This Month: $ Target: $400
 0% 

Dgl & Shotguns only


Post New Thread Reply   
 
Thread Tools Display Modes
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 01-14-2009 , 14:55   Re: Dgl & Shotguns only
Reply With Quote #11

There are plugins something about this ;) Search ;)
Example: in de_dust.ini you will use xxx plugins.
In other maps, other plugins.
xbatista is offline
Send a message via Skype™ to xbatista
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-14-2009 , 14:58   Re: Dgl & Shotguns only
Reply With Quote #12

Quote:
Originally Posted by xbatista View Post
There are plugins something about this ;) Search ;)
Example: in de_dust.ini you will use xxx plugins.
In other maps, other plugins.
It's basic ability on Amxx to make maps have specific plugins. No need to search for it.
SnoW is offline
Send a message via MSN to SnoW
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-14-2009 , 15:05   Re: Dgl & Shotguns only
Reply With Quote #13

Quote:
Originally Posted by ConnorMcLeod View Post
Declare this plugin only on maps you want, don't restrict anything.

Example, declare the plugin in amxmodx/configs/maps/plugins-de_westwood.ini
Hey,

thats what i wannted but this removes the bomb too. :-(

Code:
    iEnt = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString , "player_weaponstrip" ) )
    SetKeyValue(iEnt, "origin", "9999 9999 9999", "player_weaponstrip")
    SetKeyValue(iEnt, "targetname", "stripper", "player_weaponstrip")
    dllfunc(DLLFunc_Spawn, iEnt)
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
X0Left4dead0X
BANNED
Join Date: Jan 2009
Old 01-14-2009 , 16:29   Re: Dgl & Shotguns only
Reply With Quote #14

PHP Code:
new wpnid read_data(3)

if(
wpnid == CSW_C4)
return 
plugin_handled
X0Left4dead0X is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-14-2009 , 17:53   Re: Dgl & Shotguns only
Reply With Quote #15

Quote:
Originally Posted by X0Left4dead0X View Post
PHP Code:
new wpnid read_data(3)

if(
wpnid == CSW_C4)
return 
plugin_handled
Hey,

Not func :-(
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-15-2009 , 02:15   Re: Dgl & Shotguns only
Reply With Quote #16

PHP Code:
public removec4(id)
{
  new 
wpnid read_data(3)

          if(
wpnid == CSW_C4)
          {
          return 
plugin_handled
          }

</SPAN></SPAN>

????
Doc-Holiday is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-15-2009 , 05:39   Re: Dgl & Shotguns only
Reply With Quote #17

Quote:
Originally Posted by NcB_Sav View Post
PHP Code:
public removec4(id)
{
  new 
wpnid read_data(3)

          if(
wpnid == CSW_C4)
          {
          return 
plugin_handled
          }

</SPAN></SPAN>

????
Hey,

i tried this allready,where am i wrong :-(

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

new g_iFhKeyValue

public plugin_precache()
{
    new 
iEnt

    iEnt 
engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString "player_weaponstrip" ) )
    
SetKeyValue(iEnt"origin""9999 9999 9999""player_weaponstrip")
    
SetKeyValue(iEnt"targetname""stripper""player_weaponstrip")
    
dllfunc(DLLFunc_SpawniEnt)

    
iEnt engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString "game_player_equip" ) )
    
SetKeyValue(iEnt"weapon_knife""1""game_player_equip")
    
SetKeyValue(iEnt"weapon_deagle""1""game_player_equip")
    
SetKeyValue(iEnt"ammo_50ae""5""game_player_equip")
    
SetKeyValue(iEnt"weapon_m3""1""game_player_equip")
    
SetKeyValue(iEnt"ammo_buckshot""4""game_player_equip")
    
SetKeyValue(iEnt"targetname""equipment""game_player_equip")
    
dllfunc(DLLFunc_SpawniEnt)

    
iEnt engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString "multi_manager" ) )
    
SetKeyValue(iEnt"stripper""0""multi_manager")
    
SetKeyValue(iEnt"equipment""1""multi_manager")
    
SetKeyValue(iEnt"targetname""game_playerspawn""multi_manager")
    
SetKeyValue(iEnt"spawnflags""1""multi_manager")
    
dllfunc(DLLFunc_SpawniEnt)

    
iEnt engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString "info_map_parameters" ) )
    
SetKeyValue(iEnt"buying""3""info_map_parameters")
    
dllfunc(DLLFunc_SpawniEnt)

    
g_iFhKeyValue register_forward(FM_KeyValue"KeyValue")
}

SetKeyValue(iEnt, const szKey[], const szValue[], const szClassName[])
{
    
set_kvd(0KV_ClassNameszClassName)
    
set_kvd(0KV_KeyNameszKey)
    
set_kvd(0KV_ValueszValue)
    
set_kvd(0KV_fHandled0)
    
dllfunc(DLLFunc_KeyValueiEnt0)
}

public 
KeyValue(iEntkvd_handle)
{
    if( 
pev_valid(iEnt) )
    {
        static 
szClassName[20]
        
get_kvd(kvd_handleKV_ClassNameszClassNamecharsmax(szClassName))
        if(    
equal(szClassName"game_player_equip")
        ||    
equal(szClassName"info_map_parameters")
        ||    
equal(szClassName"player_weaponstrip")    )
        {
            
engfuncEngFunc_RemoveEntityiEnt )
            return 
FMRES_SUPERCEDE
        
}
    }
    return 
FMRES_IGNORED
}
public 
removec4(id)
{
  new 
wpnid read_data(3)

          if(
wpnid == CSW_C4)
          {
          return 
plugin_handled
          }
}  
public 
plugin_init()
{
    
unregister_forward(FM_KeyValueg_iFhKeyValue)
    
set_cvar_float("sv_restart"1.0)

    
register_plugin("Only Deagle and ShotGun""0.0.1""ConnorMcLeod")

    
pause("ad")

HTML Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Warning: Loose indentation on line 68
Error: Undefined symbol "plugin_handled" on line 70
Warning: Function "removec4" should return a value on line 72

1 Error.
Could not locate output file C:\Dokumente und Einstellungen\Neo\Desktop\Compiled\Untitled.amx (compile failed).
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-15-2009 , 06:36   Re: Dgl & Shotguns only
Reply With Quote #18

Gonna see this tonight (GMT+1 )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 01-15-2009 , 08:10   Re: Dgl & Shotguns only
Reply With Quote #19

Quote:
Originally Posted by ConnorMcLeod View Post
Gonna see this tonight (GMT+1 )
Hey,

ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-15-2009 , 09:49   Re: Dgl & Shotguns only
Reply With Quote #20

Quote:
Originally Posted by One View Post
Hey,

i tried this allready,where am i wrong :-(
Change plugin_handled to PLUGIN_HANDLED
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 08:49.


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