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

[L4D & L4D2] Round Start Items Giver


Post New Thread Reply   
 
Thread Tools Display Modes
def075
Junior Member
Join Date: Dec 2012
Location: tokyo, japan
Old 12-17-2012 , 07:48   Re: [L4D2] Round Start Items Giver (3.7)
Reply With Quote #121

this plugin has security hole.
pls fix.

PHP Code:
//Functions that gives items/upgrades
GiveItem(ClientString:Item[22])
{
        new 
flags GetCommandFlags("give");
        
SetCommandFlags("give"flags & ~FCVAR_CHEAT);
        
FakeClientCommand(Client"give %s"Item);
        if (
GetConVarInt(cvarGiveInfo)!=0) {
                if (
GetConVarInt(cvarGiveInfo)==1)
                {
                        
PrintToChat(Client"%t"Item);
                }
                else    if (
GetConVarInt(cvarGiveInfo)==2)
                {
                        
PrintHintText(Client"%t"Item);
                }
-                
SetCommandFlags("give"flags|FCVAR_CHEAT);
        }
+       
SetCommandFlags("give"flags|FCVAR_CHEAT);
}
GiveUpgrade(ClientString:Upgrade[22])
{
        new 
flags GetCommandFlags("upgrade_add");
        
SetCommandFlags("upgrade_add"flags & ~FCVAR_CHEAT);
        
FakeClientCommand(Client"upgrade_add %s"Upgrade);
        if (
GetConVarInt(cvarGiveInfo)!=0) {
                if (
GetConVarInt(cvarGiveInfo)==1)
                {
                        
PrintToChat(Client"%t"Upgrade);
                }
                else    if (
GetConVarInt(cvarGiveInfo)==2)
                {
                        
PrintHintText(Client"%t"Upgrade);
                }
-                
SetCommandFlags("upgrade_add"flags|FCVAR_CHEAT);
        }
+        
SetCommandFlags("upgrade_add"flags|FCVAR_CHEAT); 

def075 is offline
hell911
Member
Join Date: Nov 2009
Old 12-21-2012 , 06:34   Re: [L4D2] Round Start Items Giver (3.7)
Reply With Quote #122

Quote:
Originally Posted by Flatburner View Post
Plugin is spawning like hell on first map. It spawns hundrets of pills, pipebombs and weapons. But only on the first map when first player joins the server and i get this error:

Displaying call stack trace for plugin "l4d2_itemgiver.smx

any idea?
this is my problem also, items just spawn many times, the server lags too much.. how to fix this
hell911 is offline
irogue
Senior Member
Join Date: Jan 2011
Location: Australia
Old 08-08-2013 , 09:52   Re: [L4D2] Round Start Items Giver (3.7)
Reply With Quote #123

Quote:
Originally Posted by hell911 View Post
this is my problem also, items just spawn many times, the server lags too much.. how to fix this
I just tested this and the plugin works fine, the reason you are seeing multiple item spawns could be because of the bug mentioned in the first page -

Known bugs/issues:
- To unlock german weapons and m60 use Weapon Unlock but after that plugin is giving double items...


If you dont have this installed then i reccomend recompiling the plugin with sourcemod 1.5 stable branch and metamod 1.10 development branch.

Last edited by irogue; 08-08-2013 at 09:52.
irogue is offline
Shin722
New Member
Join Date: Feb 2014
Old 02-09-2014 , 03:39   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #124

Sory my english is poor

I have a problem , my server 16+Survivor ,but it's just can give item for 3~4 players

and the bot didn't get any item. How can i fix that? thx a lot

os win7 64bit

log
Quote:
L 02/09/2014 - 15:21:48: Error log file session closed.
L 02/09/2014 - 15:21:49: SourceMod error session started
L 02/09/2014 - 15:21:49: Info (map "c3m1_plankcountry") (file "errors_20140209.log")
L 02/09/2014 - 15:21:49: [SM] Fatal error encountered parsing translation file "l4d2_itemgiver.phrases.txt"
L 02/09/2014 - 15:21:49: [SM] Error (line 0, column 0): Stream failed to open
L 02/09/2014 - 15:22:13: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:22:13: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:22:13: [SM] [0] Line 734, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveHea lthItem_l4d2()
L 02/09/2014 - 15:22:13: [SM] [1] Line 452, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveHea lthDelay_l4d2()
L 02/09/2014 - 15:22:23: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:22:23: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:22:23: [SM] [0] Line 399, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveMel eeItem_l4d()
L 02/09/2014 - 15:22:23: [SM] [1] Line 226, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveMel eeDelay_l4d()
L 02/09/2014 - 15:22:28: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:22:28: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:22:28: [SM] [0] Line 695, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveGra nadeItem_l4d2()
L 02/09/2014 - 15:22:28: [SM] [1] Line 447, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveGra nadeDelay_l4d2()
L 02/09/2014 - 15:224: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:224: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:224: [SM] [0] Line 475, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GivePri mWeaponItem_l4d2()
L 02/09/2014 - 15:224: [SM] [1] Line 437, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GivePri mWeaponDelay_l4d2()
L 02/09/2014 - 15:224: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:224: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:224: [SM] [0] Line 597, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveSec oWeaponItem_l4d2()
L 02/09/2014 - 15:224: [SM] [1] Line 442, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveSec oWeaponDelay_l4d2()
L 02/09/2014 - 15:229: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 02/09/2014 - 15:229: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:229: [SM] [0] Line 779, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveSup plyItem_l4d2()
L 02/09/2014 - 15:229: [SM] [1] Line 457, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveSup plyDelay_l4d2()
L 02/09/2014 - 15:22:54: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 02/09/2014 - 15:22:54: [SM] Native "PrintToChat" reported: Language phrase "LASER_SIGHT" not found
L 02/09/2014 - 15:22:54: [SM] Displaying call stack trace for plugin "l4d2_itemgiver_test.smx":
L 02/09/2014 - 15:22:54: [SM] [0] Line 945, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveUpg rade()
L 02/09/2014 - 15:22:54: [SM] [1] Line 832, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveUpg radeItem_l4d2()
L 02/09/2014 - 15:22:54: [SM] [2] Line 462, E:\L4D2\L4D2\l4d2_sv\left4dead2\addons\source mod\scripting\l4d2_itemgiver_test.sp::GiveUpg radeDelay_l4d2()
plugins
Quote:
[SM] Listing 42 plugins:
01 "Admin File Reader" (1.6.0-dev+4205) by AlliedModders LLC
02 "Admin Help" (1.6.0-dev+4205) by AlliedModders LLC
03 "Admin Menu" (1.6.0-dev+4205) by AlliedModders LLC
04 "All4Dead" (1.4.4UF) by grandwazir, Tom1314, base64
05 "All4Dead" (2.0.0) by James Richardson (grandwazir)
06 "Anti-Flood" (1.6.0-dev+4205) by AlliedModders LLC
07 "Plugin Autoupdater" (1.5) by MikeJS
08 "Basic Ban Commands" (1.6.0-dev+4205) by AlliedModders LLC
09 "Basic Chat" (1.6.0-dev+4205) by AlliedModders LLC
10 "Basic Comm Control" (1.6.0-dev+4205) by AlliedModders LLC
11 "Basic Commands" (1.6.0-dev+4205) by AlliedModders LLC
12 "Basic Info Triggers" (1.6.0-dev+4205) by AlliedModders LLC
13 "Basic Votes" (1.6.0-dev+4205) by AlliedModders LLC
14 "Blind Luck" (1.1.1) by James Richardson (grandwazir)
15 "Client Preferences" (1.6.0-dev+4205) by AlliedModders LLC
16 "[L4D2] 4+ Survivor Afk Fix" (1.4) by MI 5, SwiftReal, raziEiL [disawar1], Electr0 [m_iMeow]
17 "[L4D & L4D2] Sappy Fix" (2.0) by raziEiL [disawar1]
18 "Fun Commands" (1.5.3-dev+3955) by AlliedModders LLC
19 "Fun Votes" (1.5.3-dev+3955) by AlliedModders LLC
20 "L4D Assistance System" (1.6) by [E]c & Max Chu, SilverS & ViRaGisTe
21 "L4D2 Auto Infected Spawner" (1.0) by Tordecybombo ,, FuzzOne - miniupdate ,, TacKLER - miniupdate again
22 "L4D2 -=BwA=- Simple Supplier - Missing Medkit and Weapons Fix" (1.0.2) by -=BwA=- jester
23 "[L4D2] Infected Fix Spawn" (1.3.1) by V10
24 "L4D2 Round Start Items Giver" (3.7) by kwski43 aka Jacklul
25 "[L4D2] Model Precacher" (1.666.1) by satannuts
26 "[L4D2]Pet_Christmas" (1.1 Beta) by GsiX
27 "[L4D2] Upgrade Packs FIXES" (1.6) by V10
28 "[L4D2] Weapon Unlock" (0.8.1) by Crimson_Fox
29 "[L4D/L4D2] Character Select Menu" (2.5a) by MI 5
30 "[L4D] Black and White Notifier" (1.6r) by DarkNoghri, madcap (recoded by: retsam)
31 "L4D Broadcast & PlaySound" (1.2.0) by Voiderest & Wind
32 "L4D Door Lock" (0.0.2) by NiCo-op
33 "L4D Friendly Fire Limit" (1.1.1) by -pk-
34 "L4D Infected HP" (1.0.2) by NiCo-op
35 "L4D Players" (0.0.1) by NiCo-op
36 "tank's burning rock" (1.0) by Pan Xiaohai
37 "Player Commands" (1.6.0-dev+4205) by AlliedModders LLC
38 "Reserved Slots" (1.6.0-dev+4205) by AlliedModders LLC
39 "Sound Commands" (1.6.0-dev+4205) by AlliedModders LLC
40 "SQL Admin Manager" (1.6.0-dev+4205) by AlliedModders LLC
41 "Melee In The Saferoom" (2.0.7) by N3wton
42 "L4D Force Mission Changer" (1.4.0) by Dionys,Visual77, Viragiste & Chronic1

Last edited by Shin722; 02-09-2014 at 03:40.
Shin722 is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 08-26-2014 , 18:23   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #125

Quote:
Originally Posted by Shin722 View Post
Sory my english is poor

I have a problem , my server 16+Survivor ,but it's just can give item for 3~4 players

and the bot didn't get any item. How can i fix that? thx a lot

os win7 64bit

log

plugins
I would assume this happens because either the plugin doesnt take into account more than four players, or the plugin fires before any extra bots are created, meaning before your bot adding plugins load.
MasterMind420 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-15-2016 , 19:25   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #126

Update (3.9, L4D2 version)
: Transitioned to new syntax.
: Requires Left 4 Downtown 2 extension.
: Items are now given in OnClientPostAdminCheck (May have some bugs like not receiving items as the plugin should do)
: Removed melee weapons as the plugin spawns them as hunter arms instead.
: Added a convar in case of emergencies. (!giveitems)
Attached Files
File Type: sp Get Plugin or Get Source (items_giver-l4d2.sp - 525 views - 20.8 KB)
File Type: smx items_giver-l4d2.smx (12.5 KB, 355 views)
cravenge is offline
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 07-05-2019 , 12:56   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #127

Quote:
Originally Posted by cravenge View Post
Update (3.9, L4D2 version)
: Transitioned to new syntax.
: Requires Left 4 Downtown 2 extension.
: Items are now given in OnClientPostAdminCheck (May have some bugs like not receiving items as the plugin should do)
: Removed melee weapons as the plugin spawns them as hunter arms instead.
: Added a convar in case of emergencies. (!giveitems)
ad message keep popup even i set the cvar to "0"
how to hide that message?
zaviier is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 08-24-2019 , 11:36   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #128

Quote:
Originally Posted by cravenge View Post
Update (3.9, L4D2 version)
: Transitioned to new syntax.
: Requires Left 4 Downtown 2 extension.
: Items are now given in OnClientPostAdminCheck (May have some bugs like not receiving items as the plugin should do)
: Removed melee weapons as the plugin spawns them as hunter arms instead.
: Added a convar in case of emergencies. (!giveitems)
I can't use your plugin as my server doesn't use "Left 4 Downtown 2". I just use the opening poster's plugin for my l4d1 server, but that plugin has issues with giving out stuff twice to all players from map 2 onward. Map 1 gives out stuff once - as it should, and the same should also apply to all the subsequent maps. The original author never did fix this glaring issue. It was the same with the "Pill here" plugin too - has exact same issues.

Just curious, but does your "OnClientPostAdminCheck" stop those items from being given out twice to players?
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 08-29-2019 , 05:33   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #129

Further to my post 128, I've managed to find a work-a-round solution to the opening poster's plugin. I'm not a coder myself, just a hacker. But the most important thing is I've fixed the long-standing issue with that plugin and it now works properly.

I'm not going to post my 'unworthy' scripts here, but if anyone else here has been as desperate as me to have some kind of fix for the author's original plugin, and would like a copy of my plugins for their server, then send me a PM to obtain my scripts.

Last edited by Sunyata; 02-10-2021 at 09:54.
Sunyata is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 11-20-2021 , 09:01   Re: [L4D & L4D2] Round Start Items Giver
Reply With Quote #130

After L4D is resurrected, there is only one pistol, can this be repaired? A random primary weapon will be given

Can anyone see this request and perfect him?
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

Last edited by ZBzibing; 12-14-2021 at 04:27.
ZBzibing 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 16:28.


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