[IMG]http://puu.sh/1Aqnr[/IMG][B]V2[/B]
[B]Copy of PointShop thread as it was locked due to post limit and _Undefined and Matt are banned. I did not make this addon.[/B]
Somebody linked me to a version of my old [URL="http://www.facepunch.com/showthread.php?t=1022682"]WIP: PointShop[/URL] that someone had hacked together to make it work for Garry's Mod 13. The code annoyed me so much that my OCD kicked in and it made me finish off the one I'd started during the beta.
It's working in SP and MP as far as I can see, let me know if there are problems and I'll fix them up. Post suggestions if you like but no promises I'll do any of them.
[B]Features[/B]
- Recoded from scratch.
- Item equipping/holstering.
- Updated GUI.
- Item customisation (colors only for now).
- Admin tab for managing players points.
- Items removed on death or TTT spectate mode, and given back when you spawn again (OnHolster and OnEquip).
- New item file layout for easier editing and creating.
- Points given over time (configure in sh_config.lua).
[B]Media[/B]
[URL="http://puu.sh/1AAxv"][IMG_THUMB]http://puu.sh/1AAxv[/IMG_THUMB][/URL]
[URL="http://puu.sh/1AAxS"][IMG_THUMB]http://puu.sh/1AAxS[/IMG_THUMB][/URL]
[URL="http://puu.sh/1AAya"][IMG_THUMB]http://puu.sh/1AAya[/IMG_THUMB][/URL]
[URL="http://puu.sh/1AAyk"][IMG_THUMB]http://puu.sh/1AAyk[/IMG_THUMB][/URL]
[B]Download / Install[/B]
GitHub - [url]https://github.com/adamdburton/pointshop[/url]
Zip - [url]https://github.com/adamdburton/pointshop/archive/master.zip[/url]
Clone or extract the pointshop repo or pointshop-master folder to your addons folder.
[B]MySQL Synchronisation[/B]
I was originally selling this but I'm just too kind. Anyone who bought it has been refunded. This requires the MySQLOO module installing and a MySQL server that your gameserver(s) can connect to.
Be [B]VERY [/B]cautious letting people set the MySQL stuff up for you. If your MySQL database is set up to allow connections from anywhere (either on purpose or by accident), anyone with the connection details will be able to connect to it. If you get someone to do it for you, make sure you change the password once it's all working.
GitHub - [url]https://github.com/adamdburton/pointshop-mysql[/url]
Zip - [url]https://github.com/adamdburton/pointshop-mysql/archive/master.zip[/url]
Clone or extract the pointshop-mysql repo or pointshop-mysql-master folder to your addons folder and then edit the mysql.lua file with your database info.
[B]Extra Items[/B]
This is a repository of extra items for PointShop that I or others have made, and are separate to the main repository to keep it clean from models and materials. PM me if you have an item you'd like including. If you're having problems with clients downloading, move the models and materials to the root garrysmod folder, merging them into the existing ones.
GitHub - [url]https://github.com/adamdburton/pointshop-extras[/url]
Zip - [url]https://github.com/adamdburton/pointshop-extras/archive/master.zip[/url]
Add this as another legacy addon in your addons folder.
[B]Custom Items[/B]
If you create custom items, make sure the filenames of the lua files don't have spaces or capital letters. The item names can be anything you wish.
The positions for each item were found with trail and error. There isn't a program to find them for you.
Item property/function documentation: [url]http://pointshop.burt0n.net/items[/url]
[B]Problems / Suggestions[/B]
Please make sure you're on the latest version before reporting errors.
Post any issues with the PointShop code (not your custom items) on GitHub: [url]https://github.com/adamdburton/pointshop/issues[/url]
If you have custom items and they're not working, it's not my problem, but feel free to post them here and me or someone else may help you.
[B]DO NOT ADD ME ON STEAM TO ASK QUESTIONS OR ASK ME TO MAKE SOMETHING, POST IN THE THREAD![/B]
[B]Donate[/B]
If you would like to support development and make sure I keep this updated with fixes and new features, donating some of your money to me will go a long way to doing that. Receiving donations really inspires me to work more.
[URL="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YT9CE8Y4DWGRQ"][IMG]https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif[/IMG][/URL]
[B]Thanks[/B]
These are people who have helped out with PointShop. Let me know if I've missed you off.
[URL="http://www.facepunch.com/member.php?u=495302"]Matt-[/URL] - Bug hunting/fixing, code optimisation and a few features!
_Undefined - Everything else
BlackVoid - Some SQL queries for the MySQL Sync.
Please note, the OP is not the creator of PointShop, he is just the messenger as _Undefined seems to currently be banned from facepunch.
It'd be safe to assume _Undefined still reads this and maintains the GitHub so [b]POST AND EXPLAIN YOUR ISSUES ON GITHUB[/b]: [url]https://github.com/adamdburton/pointshop/issues[/url]
I have an issue where items are no longer equipped when players rejoin, why is this? It's getting irritating, it even says they're equipped but they're not. They must be holstered and equipped again to fix it.
[QUOTE=12voltsdc;39740064]I have an issue where items are no longer equipped when players rejoin, why is this? It's getting irritating, it even says they're equipped but they're not. They must be holstered and equipped again to fix it.[/QUOTE]
Post here: [url]https://github.com/adamdburton/pointshop/issues[/url]
[QUOTE=Phoenixf129;39739868]Please note, the OP is not the creator of PointShop, he is just the messenger as _Undefined seems to currently be banned from facepunch.
It'd be safe to assume _Undefined still reads this and maintains the GitHub so [b]POST AND EXPLAIN YOUR ISSUES ON GITHUB[/b]: [url]https://github.com/adamdburton/pointshop/issues[/url][/QUOTE]
Undefined will no longer be working on pointshop, but he will continue to approve github push requests, if anybody was wondering.
How would I go about applying a material to a gun, I want to add different materials to guns if the client has brought a certain PointShop item, I was going to just have a different model but downloading all the models would take time so is there anyway to apply a material to a weapon without changing the default model?
How do you equip items after buying them o.O? and when I try to buy something it says you're not allowed to do that at this moment. Also wondering if there's a way to let you get extra points to get traitor kills or innocent kills if you're a traitor?
[QUOTE=kaytaro;39785539]How do you equip items after buying them o.O? and when I try to buy something it says you're not allowed to do that at this moment. Also wondering if there's a way to let you get extra points to get traitor kills or innocent kills if you're a traitor?[/QUOTE]
It auto equips items after you buy them, if not then click on the item then hit equip.
You cannot buy items while you are dead.
Someone released something like that a while back, have a look around for it.
- delete this message
the power ups prevent you from going through teleporters, why? can someone help?
[QUOTE=CtrlAltDefeat;39794776]the power ups prevent you from going through teleporters, why? can someone help?[/QUOTE]
The power ups does not prevent you from using teleporters, it's probably because the map is not supposed to have super small/large players, so the detection doesn't work as it should.
Am i suppose to use this with a certain admin mod? eg ulx or evolve?
So for mysql I need mysqloo and regular mysql?
[QUOTE=vman411gamer;39847585]So for mysql I need mysqloo and regular mysql?[/QUOTE]
You need the MySQLoo module for gmod and a MySQL database.
Can somebody make a video or link me to one on how to add pointshop to my TTT server?
[QUOTE=perriment;39847900]Can somebody make a video or link me to one on how to add pointshop to my TTT server?[/QUOTE]
Just download the .zip from Github and put it straight into your addons. When in game use the default key as "F3" to open the shop.
Do i put the zip file in or do i put he pointshop-master in?
pointshop-mater
[QUOTE=perriment;39847963]Do i put the zip file in or do i put he pointshop-master in?[/QUOTE]
I dont know what rockstar was trying to say there.. The answer you were looking for was yes.
*edit* didnt see it said zip, extract it first and put the folder in there.
zip file or pointshop into the addon folder
Is it possible to make different Ranks on the server get different amount of points?
[QUOTE=Fruzzies;39841647]Am i suppose to use this with a certain admin mod? eg ulx or evolve?[/QUOTE]
This PointShop does not require an admin mod.
[QUOTE=CtrlAltDefeat;39794776]the power ups prevent you from going through teleporters, why? can someone help?[/QUOTE]
The power ups have no effect on me when I go through a teleporter.
[QUOTE=perriment;39847900]Can somebody make a video or link me to one on how to add pointshop to my TTT server?[/QUOTE]
Look in the first post where is says 'Download / Install' then download the Zip. Open up the zip and there is a folder inside it called 'pointshop-master' put that folder into your servers addon folder (garrysmod/addons) make sure to restart your server after you have placed it inside the addons folder.
Also scratch what I said about the material thing, I was being stupid ;-;
THANK YOU ^^^^^^^ this is getting annoying
Hey can anyone tell me how to make a weapon permanent? Like how can I make it so if the player dies with the weapon, it is automatically equipped.
[QUOTE=bladez422;39868562]Hey can anyone tell me how to make a weapon permanent? Like how can I make it so if the player dies with the weapon, it is automatically equipped.[/QUOTE]
Use Player Classes, or put it in the Player Spawn function.
[url]http://wiki.garrysmod.com/page/Player_Classes[/url]
Does anyone know of a way to limit the inventory of an item for sale? Like, only X amount of connected players can buy/ own a single use item at a time?
[QUOTE=Lerpaderp;39878207]Use Player Classes, or put it in the Player Spawn function.
[url]http://wiki.garrysmod.com/page/Player_Classes[/url][/QUOTE]
Thank man, really helped.
Trying to limit the amount of certain items per round (ttt)
I've gotten as far as this:
Added code to [I]PS_BuyItem()[/I] found in [I]cl_player_extension.lua[/I]
[code]
function Player:PS_BuyItem(item_id)
if self:PS_HasItem(item_id) then return false end
--------------- Limit Amount ---------------------
if Limited then
RoundCount = 0
for _, p in pairs(player.GetAll()) do
if p:PS_HasItem(item_id) then
RoundCount = RoundCount + 1
end
if RoundCount >= 1 then return false end
end
end
-----------------------------------
if not self:PS_HasPoints(PS.Items[item_id].Price) then return false end
net.Start('PS_BuyItem')
net.WriteString(item_id)
net.SendToServer()
end
[/code]
Then added
[I][B]Limited = true[/B]
[/I]
to items that I want limited.
It doesn't seem to be counting the items everyone has, any ideas?
The script does work otherwise, setting [B][I]if RoundCount = 0 then return false end[/I] [/B]will effectively block the item's purchase.
Hey, I got another question, is it possible to make a code that would reward players for killing npc's? If you know the code or can give a example to work on please.. let me know :)
I like tinos Idea because I have had to remove the buy in function because VIP players "abuse" it.
Sorry, you need to Log In to post a reply to this thread.