Raised This Month: $51 Target: $400
 12% 

[REQ] Glock giver on map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 08-12-2009 , 20:07   [REQ] Glock giver on map
Reply With Quote #1

Heres a simple plugin I think one of you can make.
I want the map "usp_ninja" to not give you a USP when you spawn.
Instead I want it to give a glock. So I'm guessing you remove the entity
from the map. Thank you!
__________________
BeastGaming Community - Map Maker & Coder.
imindfreak is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-13-2009 , 03:16   Re: [REQ] Glock giver on map
Reply With Quote #2

Try :

Code:
    #include <amxmodx>     #include <engine>         public plugin_precache()     {         new Entity;                 Entity = create_entity( "info_map_parameters" );         DispatchKeyValue( Entity, "buying", "3" );         DispatchSpawn( Entity );                 Entity = create_entity( "player_weaponstrip" );         DispatchKeyValue( Entity, "targetname", "stripper" );         DispatchSpawn( Entity );                 Entity = create_entity( "game_player_equip" );         DispatchKeyValue( Entity, "weapon_knife"  , "1" );         DispatchKeyValue( Entity, "weapon_glock18", "1" );         DispatchKeyValue( Entity, "ammo_9mm"      , "3" );         DispatchKeyValue( Entity, "targetname"    , "equipment" );         DispatchSpawn( Entity );                 Entity = create_entity( "multi_manager" );         DispatchKeyValue( Entity, "equipment" , "0.5" );         DispatchKeyValue( Entity, "stripper"  , "0"   );         DispatchKeyValue( Entity, "targetname", "game_playerspawn" );         DispatchKeyValue( Entity, "spawnflags", "1"   );         DispatchSpawn( Entity );     }         public pfn_keyvalue( Entity )     {         new ClassName[ 20 ];         new KeyName  [ 16 ];         new Value    [ 20 ];                 copy_keyvalue( ClassName, charsmax( ClassName ), KeyName, charsmax( KeyName ), Value, charsmax( Value ) )                 if ( equal( ClassName, "info_map_parameters" ) || equal( ClassName, "player_weaponstrip" ) ||              equal( ClassName, "game_player_equip" )   || equal( ClassName, "func_buyzone" ) )         {             remove_entity( Entity );             return PLUGIN_HANDLED;         }         else if ( equal( ClassName, "multi_manager" ) && equal( KeyName, "targetname" ) && equal( Value, "game_playerspawn" ) )         {             remove_entity( Entity );             return PLUGIN_HANDLED;         }                 return PLUGIN_CONTINUE;     }         public plugin_init()     {         register_plugin( "Give Glock", "1.0.0", "Arkshine" );     }
__________________
Arkshine 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 17:04.


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