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

[L4D/L4D2] Weapon/Zombie Spawner v1.0a (Update 18.10.10)


Post New Thread Reply   
 
Thread Tools Display Modes
Darknezzz
Junior Member
Join Date: Aug 2009
Old 11-22-2009 , 19:06   Re: [L4D2] Weapon Spawner
Reply With Quote #11

You forgot weapon_vomitjar
Darknezzz is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-23-2009 , 00:47   Re: [L4D2] Weapon Spawner
Reply With Quote #12

thx
__________________
Zuko is offline
Send a message via ICQ to Zuko
billabonker
Senior Member
Join Date: May 2009
Old 11-23-2009 , 08:17   Re: [L4D2] Weapon Spawner
Reply With Quote #13

sm_gw <target name> katana is not working
billabonker is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-23-2009 , 09:13   Re: [L4D2] Weapon Spawner
Reply With Quote #14

its works on the first campaign for sure (sm_gw @me katana)

[IMG]http://img517.**************/img517/7469/c1m1hotel0000.th.jpg[/IMG]
__________________
Zuko is offline
Send a message via ICQ to Zuko
billabonker
Senior Member
Join Date: May 2009
Old 11-23-2009 , 09:44   Re: [L4D2] Weapon Spawner
Reply With Quote #15

yeah but for swamp fever it doesnt.
billabonker is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-23-2009 , 09:48   Re: [L4D2] Weapon Spawner
Reply With Quote #16

Read first post carefully.
__________________
Zuko is offline
Send a message via ICQ to Zuko
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 11-23-2009 , 10:33   Re: [L4D2] Weapon Spawner
Reply With Quote #17

I tried to modify this with a menu. The menu displays, but crashes upon selection. Here's what I have, see if you can implement it (fixed, obviously).

Code:
public OnPluginStart()     RegAdminCmd("sm_spawnweapon", concmd_spawnweapon, ADMFLAG_BAN) public Action:concmd_spawnweapon(id, args) {     decl String:szWeapon[48]     if (args != 1)     {         new Handle:hSpawnWeaponMenu = CreateMenu(fnSpawnWeaponMenu)         SetMenuTitle(hSpawnWeaponMenu, "Weapon Selection")         AddMenuItem(hSpawnWeaponMenu, "weapon_adrenaline", "Adrenaline")         AddMenuItem(hSpawnWeaponMenu, "weapon_autoshotgun", "Auto Shotgun")         AddMenuItem(hSpawnWeaponMenu, "weapon_chainsaw", "Chainsaw")         AddMenuItem(hSpawnWeaponMenu, "weapon_defibrillator", "Defibrillator")         AddMenuItem(hSpawnWeaponMenu, "weapon_fireworkcrate", "Fireworks Crate")         AddMenuItem(hSpawnWeaponMenu, "weapon_firstaidkit", "First Aid Kit")         AddMenuItem(hSpawnWeaponMenu, "weapon_gascan", "Gas Can")         AddMenuItem(hSpawnWeaponMenu, "weapon_gnome", "Gnome")         AddMenuItem(hSpawnWeaponMenu, "weapon_grenadelauncher", "Grenade Launcher")         AddMenuItem(hSpawnWeaponMenu, "weapon_huntingrifle", "Hunting Rifle")         AddMenuItem(hSpawnWeaponMenu, "weapon_molotov", "Molotov Cocktail")         AddMenuItem(hSpawnWeaponMenu, "weapon_oxygentank", "Oxygen Tank")         AddMenuItem(hSpawnWeaponMenu, "weapon_painpills", "Pain Pills")         AddMenuItem(hSpawnWeaponMenu, "weapon_pipebomb", "Pipebomb")         AddMenuItem(hSpawnWeaponMenu, "weapon_pistol", "Pistol")         AddMenuItem(hSpawnWeaponMenu, "weapon_pistol_magnum", "Magnum")         AddMenuItem(hSpawnWeaponMenu, "weapon_propanetank", "Propane Tank")         AddMenuItem(hSpawnWeaponMenu, "weapon_pumpshotgun", "Pump Shotgun")         AddMenuItem(hSpawnWeaponMenu, "weapon_rifle", "M16")         AddMenuItem(hSpawnWeaponMenu, "weapon_rifle_ak47", "AK47")         AddMenuItem(hSpawnWeaponMenu, "weapon_rifle_desert", "Desert Rifle")         AddMenuItem(hSpawnWeaponMenu, "weapon_rifle_sg552", "SG552")         AddMenuItem(hSpawnWeaponMenu, "weapon_shotgun_chrome", "Chrome Shotgun")         AddMenuItem(hSpawnWeaponMenu, "weapon_shotgun_spas", "Spas Shotgun")         AddMenuItem(hSpawnWeaponMenu, "weapon_smg", "Uzi")         AddMenuItem(hSpawnWeaponMenu, "weapon_smg_mp5", "MP5")         AddMenuItem(hSpawnWeaponMenu, "weapon_smg_silenced", "Silenced Uzi")         AddMenuItem(hSpawnWeaponMenu, "weapon_sniper_awp", "AWP Sniper")         AddMenuItem(hSpawnWeaponMenu, "weapon_sniper_military", "Military Sniper")         AddMenuItem(hSpawnWeaponMenu, "weapon_sniper_scout", "Scout Sniper")         SetMenuExitButton(hSpawnWeaponMenu, true)         DisplayMenu(hSpawnWeaponMenu, id, 20)         return Plugin_Handled     }     else         GetCmdArg(1, szWeapon, 47)     if (!fnSetTeleportEndPoint(id))     {         PrintToChat(id, "[SM] Could not find spawn point.")         return Plugin_Handled     }     new const iWeapon = CreateEntityByName(szWeapon)     if (IsValidEntity(iWeapon))     {                DispatchSpawn(iWeapon)         g_fpPosition[2] -= 10.0         TeleportEntity(iWeapon, g_fpPosition, NULL_VECTOR, NULL_VECTOR)     }     return Plugin_Handled } public fnSpawnWeaponMenu(Handle:hSpawnWeaponMenu, MenuAction:mAction, iParam1, iParam2) {     if (mAction == MenuAction_Select)     {         decl String:szWeapon[48]         GetMenuItem(hSpawnWeaponMenu, iParam2, szWeapon, 47)         if (!fnSetTeleportEndPoint(iParam1))         {             PrintToChat(iParam1, "[SM] Could not find spawn point.")             CloseHandle(hSpawnWeaponMenu)             return         }         new const iWeapon = CreateEntityByName(szWeapon)         if (IsValidEntity(iWeapon))         {             DispatchSpawn(iWeapon)             g_fpPosition[2] -= 10.0             TeleportEntity(iWeapon, g_fpPosition, NULL_VECTOR, NULL_VECTOR)         }     }     CloseHandle(hSpawnWeaponMenu) }
Spunky is offline
Send a message via AIM to Spunky
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-23-2009 , 13:20   Re: [L4D2] Weapon Spawner
Reply With Quote #18

I'm working on menu right now. Plz w8 a moment. ;]
__________________
Zuko is offline
Send a message via ICQ to Zuko
(FoE)ThePhoenix
New Member
Join Date: Nov 2009
Location: Indiana
Old 11-23-2009 , 13:23   Re: [L4D2] Weapon Spawner
Reply With Quote #19

Anyone know how to add this into the sm_menu? I have several nice plugins i use on l4d 1 each had a custom menu that was incorporated into the sm_contols. I would gladly create one and help out if I knew where to start.
(FoE)ThePhoenix is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-23-2009 , 18:20   Re: [L4D2] Weapon Spawner
Reply With Quote #20

updated to v0.3
+Added Menu (in admin menu - Server Commands)
+Added sm_spawn
__________________
Zuko is offline
Send a message via ICQ to Zuko
Reply


Thread Tools
Display Modes

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 14:24.


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