Raised This Month: $ Target: $400
 0% 

Search Plugin: Random Start Weapons


  
 
 
Thread Tools Display Modes
Author Message
ProjectDefconTeam
New Member
Join Date: Aug 2010
Location: Europa
Old 08-21-2010 , 09:34   Search Plugin: Random Start Weapons
#1

Hallo,
wir suchen ein Plugin für unseren Fun Server.
es handelt sich hier bei um dein Random Give Weapons Give plugin.
wir haben zwar schon paar gefunden aber die sprechen uns leider nicht so an.

das plugin sollte beinhalten:
-Kaufen blocken
-waffen aufnehmen blocken
-waffen fallen lassen blocken
-jede runde neue funwaffe. (keine Rifles, m4 ak usw. only shotguns and miniguns)
-die alten dafür wegnehmen.

hoffen das uns wer weiterhelfen könnte.

mfg Porject Defcon
__________________
Project Defcon Gaming Community
Gaming is not a Crime
===========================================
Server:
.:Battleground by Project Defcon:.
.:The Naked Gun by Project Defcon:.
.:The Warlords by Project Defcon:.

ProjectDefconTeam is offline
Send a message via ICQ to ProjectDefconTeam
master4life
Senior Member
Join Date: Mar 2006
Location: Germany
Old 08-21-2010 , 14:54   Re: Search Plugin: Random Start Weapons
#2

Mir war gerade langwelig und hab dir das mal zusammen gewürfelt, ich wusste zwar nicht was du mit minigun meintest aber dafür hab ich die m249 genommen.

sag mir bescheid wenn was nicht funktioniert.

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

public plugin_init( ) {
    
register_plugin"Funwar: XYZ""0.1""master4life" );

    
register_clcmd"buy""CmdBlock" );
    
register_clcmd"drop""CmdBlock" );
    
    
RegisterHamHam_Spawn"player""FwdHamSpawnPlayerPost"true );
    
RegisterHamHam_Touch"weaponbox""FwdHamPickupWeaponPre"false );
    
RegisterHamHam_Touch"armoury_entity""FwdHamPickupWeaponPre"false );
    
    
server_cmd"sv_restart 1" );
    
server_exec( );
}

public 
plugin_precache( ) {
    new 
iEntity create_entity"info_map_parameters" );
    
DispatchKeyValueiEntity"buying""3" );
    
DispatchSpawniEntity );
}

public 
CmdBlock( )
    return 
PLUGIN_HANDLED;

public 
FwdHamPickupWeaponPre( const iEntity, const id )
    return 
HAM_SUPERCEDE;

public 
FwdHamSpawnPlayerPost( const id ) {
    if( !
is_user_aliveid ) )
        return;
    
    
strip_user_weaponsid );
    
give_itemid"weapon_knife" );
    
    switch( 
random_num0) ) {
        case 
0give_itemid"weapon_m3" );
        case 
1give_itemid"weapon_xm1014" );
        case 
2give_itemid"weapon_m249" );
    }

__________________


[img]http://img714.**************/img714/8612/33726.png[/img]
master4life is offline
Send a message via ICQ to master4life Send a message via MSN to master4life Send a message via Skype™ to master4life
ProjectDefconTeam
New Member
Join Date: Aug 2010
Location: Europa
Old 08-21-2010 , 15:06   Re: Search Plugin: Random Start Weapons
#3

ganz nett danke.

aber mit den miniguns meinte ich mehrere ^^
die ganzen kleineren.
wie:
m3
xm1014
tmp
mp5
mac10
ump45
p90
scout

eine frage hätte ich denn noch bei dem plugin gibt er auch dem entsprechend volles magazin? =)
__________________
Project Defcon Gaming Community
Gaming is not a Crime
===========================================
Server:
.:Battleground by Project Defcon:.
.:The Naked Gun by Project Defcon:.
.:The Warlords by Project Defcon:.

ProjectDefconTeam is offline
Send a message via ICQ to ProjectDefconTeam
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 08-21-2010 , 15:10   Re: Search Plugin: Random Start Weapons
#4

Minigun ist eigentlich m249 bzw. mit andern Features.
Was du meinst sind die mediums.

Und nein er gibt keine volle Munition, da du nix von erwähnt hast
hat auch master das nicht reingetan ^^
platzpatrone is offline
ProjectDefconTeam
New Member
Join Date: Aug 2010
Location: Europa
Old 08-21-2010 , 15:26   Re: Search Plugin: Random Start Weapons
#5

hmmz wäre nett wenn das plugin das acuh täte da buymenü ja geblockt werden sollte ^^

achso naja ich kenn sie nur unter miniguns aber macht ja nix
__________________
Project Defcon Gaming Community
Gaming is not a Crime
===========================================
Server:
.:Battleground by Project Defcon:.
.:The Naked Gun by Project Defcon:.
.:The Warlords by Project Defcon:.

ProjectDefconTeam is offline
Send a message via ICQ to ProjectDefconTeam
ProjectDefconTeam
New Member
Join Date: Aug 2010
Location: Europa
Old 08-21-2010 , 16:40   Re: Search Plugin: Random Start Weapons
#6

Also ich hab mich jetzt mal selber ein wenig dran probiert und wenns richtig ist ist es gut ^^ weil ich kann das eigentlich garnicht.

aber naja.
Code:
#include < amxmodx >
#include < fun >
#include < engine >
#include < hamsandwich >

public plugin_init( ) {
    register_plugin( "Funwar: pd_rpwg", "0.1", "master4life" );

    register_clcmd( "buy", "CmdBlock" );
    register_clcmd( "drop", "CmdBlock" );
    
    RegisterHam( Ham_Spawn, "player", "FwdHamSpawnPlayerPost", true );
    RegisterHam( Ham_Touch, "weaponbox", "FwdHamPickupWeaponPre", false );
    RegisterHam( Ham_Touch, "armoury_entity", "FwdHamPickupWeaponPre", false );
    
    server_cmd( "sv_restart 1" );
    server_exec( );
}

public plugin_precache( ) {
    new iEntity = create_entity( "info_map_parameters" );
    DispatchKeyValue( iEntity, "buying", "3" );
    DispatchSpawn( iEntity );
}

public CmdBlock( )
    return PLUGIN_HANDLED;

public FwdHamPickupWeaponPre( const iEntity, const id )
    return HAM_SUPERCEDE;

public FwdHamSpawnPlayerPost( const id ) {
    if( !is_user_alive( id ) )
        return;
    
    strip_user_weapons( id );
    give_item( id, "weapon_knife" );
    give_item( id, "weapon_usp" );
    cs_set_user_bpammo(id, CSW_usp, 100);
    
    switch( random_num( 0, 7 ) ) {
        case 0: give_item( id, "weapon_m3" ); cs_set_user_bpammo(id, CSW_m3, 32);
        case 1: give_item( id, "weapon_xm1014" ); cs_set_user_bpammo(id, CSW_xm1014, 32);
        case 2: give_item( id, "weapon_p90" ); cs_set_user_bpammo(id, CSW_p90, 100);
        case 3: give_item( id, "weapon_ump45" ); cs_set_user_bpammo(id, CSW_ump45, 60);
        case 4: give_item( id, "weapon_mp5" ); cs_set_user_bpammo(id, CSW_mp5, 90);
        case 5: give_item( id, "weapon_mac10" ); cs_set_user_bpammo(id, CSW_mac10, 60);
        case 6: give_item( id, "weapon_tmp" ); cs_set_user_bpammo(id, CSW_tmp, 90);
        case 7: give_item( id, "weapon_scout" ); cs_set_user_bpammo(id, CSW_scout, 60);
    }
}
Das rote habe ich jetzt dazugefügt
__________________
Project Defcon Gaming Community
Gaming is not a Crime
===========================================
Server:
.:Battleground by Project Defcon:.
.:The Naked Gun by Project Defcon:.
.:The Warlords by Project Defcon:.


Last edited by ProjectDefconTeam; 08-21-2010 at 16:44.
ProjectDefconTeam is offline
Send a message via ICQ to ProjectDefconTeam
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 08-21-2010 , 17:25   Re: Search Plugin: Random Start Weapons
#7

naja naja, hier mal gefixt und ungetestet, compilen geht aber nun.

PHP Code:
#include < amxmodx >
#include < fun >
#include < engine >
#include < cstrike >
#include < hamsandwich >

public plugin_init( ) {
    
register_plugin"Funwar: pd_rpwg""0.1""master4life" );

    
register_clcmd"buy""CmdBlock" );
    
register_clcmd"drop""CmdBlock" );
    
    
RegisterHamHam_Spawn"player""FwdHamSpawnPlayerPost"true );
    
RegisterHamHam_Touch"weaponbox""FwdHamPickupWeaponPre"false );
    
RegisterHamHam_Touch"armoury_entity""FwdHamPickupWeaponPre"false );
    
    
server_cmd"sv_restart 1" );
    
server_exec( );
}

public 
plugin_precache( ) {
    new 
iEntity create_entity"info_map_parameters" );
    
DispatchKeyValueiEntity"buying""3" );
    
DispatchSpawniEntity );
}

public 
CmdBlock( )
    return 
PLUGIN_HANDLED;

public 
FwdHamPickupWeaponPre( const iEntity, const id )
    return 
HAM_SUPERCEDE;

public 
FwdHamSpawnPlayerPost( const id ) {
    if( !
is_user_aliveid ) )
        return;
    
    
strip_user_weaponsid );
    
give_itemid"weapon_knife" );
    
give_itemid"weapon_usp" );
    
cs_set_user_bpammo(idCSW_USP100);
    
    switch( 
random_num0) ) {
        case 
0: { give_itemid"weapon_m3" ); cs_set_user_bpammo(idCSW_M332); }
        case 
1: { give_itemid"weapon_xm1014" ); cs_set_user_bpammo(idCSW_XM101432); }
        case 
2: { give_itemid"weapon_p90" ); cs_set_user_bpammo(idCSW_P90100); }
        case 
3: { give_itemid"weapon_ump45" ); cs_set_user_bpammo(idCSW_UMP4560); }
        case 
4: { give_itemid"weapon_mp5navy" ); cs_set_user_bpammo(idCSW_MP5NAVY90); }
        case 
5: { give_itemid"weapon_mac10" ); cs_set_user_bpammo(idCSW_MAC1060); }
        case 
6: { give_itemid"weapon_tmp" ); cs_set_user_bpammo(idCSW_TMP90); }
        case 
7: { give_itemid"weapon_scout" ); cs_set_user_bpammo(idCSW_SCOUT60); }
    }

platzpatrone is offline
 



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 10:53.


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