This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Weapons............


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-29-2009 , 13:50   Weapons............
Reply With Quote #1

I wants plugin for only de_dust2...
*Disable buyzone
*give only nighthawk,3 bombs,nightvision,full amoo and if ct's defuser kit,and strip all weapons on round end...and when round begins they get new 2 bombs,nightvision,nighthawk with full amoo
BULLETT is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 14:11   Re: Weapons............
Reply With Quote #2

1:

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_precache() 

    new 
mapname[18]
    
get_mapname(mapname,17)
    if(!
equali(mapname"de_dust2") )
         
pause("a")

    new 
Entity create_entity"info_map_parameters" );
    
    
DispatchKeyValueEntity"buying""3" );
    
DispatchSpawnEntity );


public 
plugin_init()
{
    
register_plugin"Remove Buy Zone""1.0.0""Arkshine" );
}

public 
pfn_keyvalueEntity )  

    new 
ClassName20 ], Dummy];
    
copy_keyvalueClassNamecharsmaxClassName ), DummycharsmaxDummy ), DummycharsmaxDummy ) );
    
    if( 
equalClassName"info_map_parameters" ) ) 
    { 
        
remove_entityEntity );
        return 
PLUGIN_HANDLED ;
    } 
    
    return 
PLUGIN_CONTINUE;

__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 08-29-2009 at 21:59.
Alucard^ is offline
Send a message via Skype™ to Alucard^
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-29-2009 , 14:51   Re: Weapons............
Reply With Quote #3

*Disable buyzone from only de_dust2
rest maps should ve buyzone.......
BULLETT is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 21:59   Re: Weapons............
Reply With Quote #4

Try now.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-30-2009 , 00:59   Re: Weapons............
Reply With Quote #5

your plugin is working it also pause whn map change is done...b
ut it disable buying of weapons frm all maps. can u edit it more.........

and whn player spwan they sould nightwalk,knife,sec ammo and nightivsion,,,,,,and if ct than defuser kit
BULLETT is offline
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-30-2009 , 01:12   Re: Weapons............
Reply With Quote #6

Quote:
Originally Posted by Alucard^ View Post
1:
i have done some editing and it worked
PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    
register_plugin"Remove Buy Zone""1.0.0""BULLETT );

}

public plugin_precache() 

    new mapname[18]
    get_mapname(mapname,17)
    if(equali(mapname, "
de_dust2") )
     {    

    new Entity = create_entity( "
info_map_parameters" );
    
    DispatchKeyValue( Entity, "
buying", "3" );
    DispatchSpawn( Entity );
      }
      else
    pause( "
a" );
}

public pfn_keyvalue( Entity )  

    new ClassName[ 20 ], Dummy[ 2 ];
    copy_keyvalue( ClassName, charsmax( ClassName ), Dummy, charsmax( Dummy ), Dummy, charsmax( Dummy ) );
    
    if( equal( ClassName, "
info_map_parameters" ) ) 
    { 
        remove_entity( Entity );
        return PLUGIN_HANDLED ;
    } 
    
    return PLUGIN_CONTINUE;
}


and whn player spwan they should get night-hwak,knife,sec ammo and nightivsion,,,,,,and if ct than defuser kit,night-hwak,knife,sec ammo and nightivsion.................every round they will get same weapons..and whn round ends they will strip all weapons before round starts like in awp_india

Last edited by BULLETT; 08-30-2009 at 01:15. Reason: I WORKED ON IT
BULLETT is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-30-2009 , 03:05   Re: Weapons............
Reply With Quote #7

I think the "else" is useless but well, is not a BIG optimization ><...

About the 2 request, sry but this i leave it to another scripter.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 08-30-2009 at 03:10.
Alucard^ is offline
Send a message via Skype™ to Alucard^
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-30-2009 , 05:04   Re: Weapons............
Reply With Quote #8

Terrorist aren't able to carry c4 and also not able to buy can any1 add it please
BULLETT is offline
BULLETT
BANNED
Join Date: Aug 2009
Location: HOLLYWOOD
Old 08-30-2009 , 05:43   Re: Weapons............
Reply With Quote #9

PHP Code:
#include <amxmodx>


     
DispatchKeyValueEntity"weapon_hegrenade""1" );
     
DispatchKeyValueEntity"weapon_flashbang""2" );
    
DispatchKeyValueEntity"weapon_smokegrenade","1");






HOW TO ADD NIGHTVISION & if ct than give dfuser kit
BULLETT 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 23:32.


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