Author Topic: Client_Backpack [--] A fun way to store things! (RP purposes)  (Read 5565 times)

Have you ever wanted that old backpack model to actually be USEFUL for things?

Well now it can!



Introducing the Backpack add-on!

It's a client-side add-on that you can use to store RP-related things!

This is NOT a bypass to help you store more tools in your inventory, it's an RP-item storer. Fake item storer

With 7 slots to store all your RP-related elements!



To use the Backpack add-on, there are a few easy steps you must follow. Alternatively, you can use b.help in-game for help.

This is a TYPING add-on. You must TYPE the bolded letters for the functions

b.open
                                               >These will open and close your backpack for viewing!
b.close


b.store ITEM slot SLOT  > This will add the ITEM to the SLOT in your backpack

b.take SLOT  >This will remove the ITEM that is held in SLOT in your backpack


b.use SLOT  >This will use the item that is in SLOT. This can be modified to erase the item afterwards in client.cs



That is all for now, oh and also, here is the download link:

Client_Backpack



Changelog
V5.0
  • Made the commands easier to type
  • Added a b.use function (this can be modified to clear the item in client.cs)
  • Added a b.help function

V2.5
  • Added a remove all

V2.0
  • Fixed reducing bug

V1.0
  • Created Add-On
  • Added commands to control it

Bugs
V1.0
  • When removing an item from an empty slot, it doesn't prevent it
« Last Edit: November 02, 2012, 06:26:19 PM by PurpleMetro »

So is this commanded via typing or bindings?

Also, amazing.

So is this commanded via typing or bindings?

Also, amazing.
typing

also my first add-on

So basically this is a way to store more items when your Q inventory is full?

After looking through the code, this doesn't actually give and/or remove items from your inventory at all.

It's for RP'ing purposes only.

Also, I suggest not using the clientCmdChatMessage and then doing a check on the players netname as a person who has control of console can easily talk as that player controlling their backpack

So basically this is a way to store more items when your Q inventory is full?
No.



EDIT;
On top of that, you never checked to see if what the player is pulling out was ever added in the first place, that should be fixed asap

And forgot to say, good job for your first addon :)
« Last Edit: November 01, 2012, 07:21:49 PM by ¥ola »


After looking through the code, this doesn't actually give and/or remove items from your inventory at all.

It's for RP'ing purposes only.

Also, I suggest not using the clientCmdChatMessage and then doing a check on the players netname as a person who has control of console can easily talk as that player controlling their backpack
No.



EDIT;
On top of that, you never checked to see if what the player is pulling out was ever added in the first place, that should be fixed asap
um, I don't understand what you are trying to say. why can't I do a netname check? it's a bit tedious for the players to have to go and change the name in the client.cs to their name, when they can just to netname check. if I don't do a netname check at all, every player who is on a server with a client who holds Client_Backpack can control that add-on



EDIT: oh, thanks, you helped me solve the removing bug. updating the file right now
« Last Edit: November 01, 2012, 07:28:46 PM by PurpleMetro »

um, I don't understand what you are trying to say. why can't I do a netname check? it's a bit tedious for the players to have to go and change the name in the client.cs to their name, when they can just to netname check. if I don't do a netname check at all, every player who is on a server with a client who holds Client_Backpack can control that add-on

No, no, no
I'm saying that yes, the way you are doing it is the CORRECT way, but it is abuseable, in this addon it isn't too much of a worry but in others it may be.

If any person with server console access decided to make the user say Open Backpack, via console then the client would be forced to open it.

There is a function that is only called when the true client sends a message, I'll attempt to find it for you
It is, newChatHud_addLine(%text)

No, no, no
I'm saying that yes, the way you are doing it is the CORRECT way, but it is abuseable, in this addon it isn't too much of a worry but in others it may be.

If any person with server console access decided to make the user say Open Backpack, via console then the client would be forced to open it.

There is a function that is only called when the true client sends a message, I'll attempt to find it for you
It is, newChatHud_addLine(%text)
tried using <br> with it, but it failed to work. is there another function similar to this but centerprint?

tried using <br> with it, but it failed to work. is there another function similar to this but centerprint?
<br>?
Centerprint?

I'm not exactly sure but you might be able to use NL for a new line

There is a function that is only called when the true client sends a message, I'll attempt to find it for you
It is, newChatHud_addLine(%text)

uh no
the server can really fake whatever it wants
as long as it isn't engine protected, which chat is not

<br>?
Centerprint?

I'm not exactly sure but you might be able to use NL for a new line
<br> is used in centerprint, to skip a line. in events there are:

onActivate - Client - centerPrint - "";

NL is for regular chat messaging, i can't use <BR> for it.

<br> is used in centerprint, to skip a line. in events there are:

onActivate - Client - centerPrint - "";

NL is for regular chat messaging, i can't use <BR> for it.

You can use \n


Holy stuff, why so much to type in? I mean, a full sentence?

Why cant it be a key bind?
Does it have to be client sided?
Why cant it work like an item overflow?
Ive wanted this, but not like this...