AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Item Giver (v1.4, 08-15-2018) (https://forums.alliedmods.net/showthread.php?t=308268)

Psyk0tik 06-13-2018 17:08

[L4D & L4D2] Item Giver (v1.4, 08-15-2018)
 
5 Attachment(s)
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.

WhatsAnName 06-13-2018 17:18

Re: [L4D & L4D2] Item Giver
 
yo you perfectly just posted that as i was wanting a plugin like this one good job man

Psyk0tik 06-13-2018 19:25

Re: [L4D & L4D2] Item Giver
 
Only 66 lines of code hahaha xD

Psyk0tik 06-13-2018 23:56

Re: [L4D & L4D2] Item Giver (v1.1, 06-13-2018)
 
Version 1.1 is out!

1. Added "LoadTranslations("common.phrases")" to solve translation errors.

Silvers 06-14-2018 09:51

Re: [L4D & L4D2] Item Giver (v1.1, 06-13-2018)
 
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); 


Psyk0tik 06-14-2018 11:05

Re: [L4D & L4D2] Item Giver (v1.2, 06-14-2018)
 
Version 1.2 is out!

1. Fixed the issue pointed out by Silvers.

Psyk0tik 06-21-2018 09:22

Re: [L4D & L4D2] Item Giver (v1.3, 06-21-2018)
 
Update released.

1. Optimized code a bit.

Psyk0tik 08-15-2018 22:44

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

1. Fixed Client 0 error.

zaviier 07-05-2019 23:47

Re: [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
 
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

Tonblader 10-15-2020 01:59

Re: [L4D & L4D2] Item Giver (v1.4, 08-15-2018)
 
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.


All times are GMT -4. The time now is 23:55.

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