Raised This Month: $404 Target: $400
 101% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Plugin ID:
6164
Plugin Version:
1.4
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    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

    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 - 197 views - 2.1 KB)
    __________________
    AFK like JFK

    Last edited by Crasher_3637; 09-03-2018 at 17:31. Reason: Updated to v1.4
    Crasher_3637 is offline
    WhatsAnName
    Junior 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
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    Old 06-13-2018 , 19:25   Re: [L4D & L4D2] Item Giver
    Reply With Quote #3

    Only 66 lines of code hahaha xD
    __________________
    AFK like JFK
    Crasher_3637 is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    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.
    __________________
    AFK like JFK
    Crasher_3637 is offline
    Silvers
    AlliedModders Donor
    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
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    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.
    __________________
    AFK like JFK
    Crasher_3637 is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    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.
    __________________
    AFK like JFK
    Crasher_3637 is offline
    Crasher_3637
    AlliedModders Donor
    Join Date: May 2012
    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.
    __________________
    AFK like JFK
    Crasher_3637 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 23:07.


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