Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Item Giver (v1.4, 08-15-2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Plugin ID:
6164
Plugin Version:
1.4
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Provides a command to give items to players.
    Old 06-13-2018 , 17:08   [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
    Reply With Quote #1

    Donate to Motivate

    Introduction

    A simple but improved version of the [L4D2] sm_give plugin.

    New Features/Differences

    - Works on any item that you can give to a player.
    - Less code.
    - New syntax.
    - No convars.
    - No config files.
    - No menus.

    Commands

    sm_give <#userid|name> "item_name"

    Credits

    Silvers - For his valuable input.

    Changelog

    Spoiler


    Initial Release.
    Attached Files
    File Type: sp Get Plugin or Get Source (item_giver.sp - 3178 views - 2.1 KB)
    __________________

    Last edited by Psyk0tik; 08-19-2021 at 09:17. Reason: Updated main post
    Psyk0tik is offline
    WhatsAnName
    Member
    Join Date: Jun 2018
    Old 06-13-2018 , 17:18   Re: [L4D & L4D2] Item Giver
    Reply With Quote #2

    yo you perfectly just posted that as i was wanting a plugin like this one good job man
    WhatsAnName is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-13-2018 , 19:25   Re: [L4D & L4D2] Item Giver
    Reply With Quote #3

    Only 66 lines of code hahaha xD
    __________________
    Psyk0tik is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-13-2018 , 23:56   Re: [L4D & L4D2] Item Giver (v1.1, 06-13-2018)
    Reply With Quote #4

    Version 1.1 is out!

    1. Added "LoadTranslations("common.phrases")" to solve translation errors.
    __________________
    Psyk0tik is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-14-2018 , 09:51   Re: [L4D & L4D2] Item Giver (v1.1, 06-13-2018)
    Reply With Quote #5

    Using this on any player will allow EVERYONE access to the "give" command so they can spawn whatever they want.

    NO:
    PHP Code:
    SetCommandFlags("give"GetCommandFlags("give") & ~FCVAR_CHEAT);
    FakeClientCommand(target_list[iPlayer], "give %s"item);
    SetCommandFlags("give"GetCommandFlags("give")); 
    YES:
    PHP Code:
    int flags GetCommandFlags("give") ;
    SetCommandFlags("give"flags & ~FCVAR_CHEAT);
    FakeClientCommand(target_list[iPlayer], "give %s"item);
    SetCommandFlags("give"flags); 
    __________________

    Last edited by Silvers; 06-14-2018 at 17:30. Reason: - | FCVAR_CHEAT
    Silvers is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-14-2018 , 11:05   Re: [L4D & L4D2] Item Giver (v1.2, 06-14-2018)
    Reply With Quote #6

    Version 1.2 is out!

    1. Fixed the issue pointed out by Silvers.
    __________________
    Psyk0tik is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-21-2018 , 09:22   Re: [L4D & L4D2] Item Giver (v1.3, 06-21-2018)
    Reply With Quote #7

    Update released.

    1. Optimized code a bit.
    __________________
    Psyk0tik is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 08-15-2018 , 22:44   Re: [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
    Reply With Quote #8

    Update released.

    1. Fixed Client 0 error.
    __________________
    Psyk0tik is offline
    zaviier
    Senior Member
    Join Date: Aug 2017
    Location: Indonesia
    Old 07-05-2019 , 23:47   Re: [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
    Reply With Quote #9

    how to use this in every round start?
    so i made a server BOT vs Player, i want to give all bot medkit and molotov in every round
    zaviier is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 10-15-2020 , 01:59   Re: [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
    Reply With Quote #10

    Can add a Menu of weapons and a command to give himselft without put the a targetplayer ?
    Can add toggle on/off the chatprint public announce ?
    Can add a command to use 1 time per round, to no spam this.

    Last edited by Tonblader; 10-16-2020 at 14:56.
    Tonblader is offline
    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 07:04.


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