Paste line 226 and 10 lines either side of it. And mark 226 with a comment.
Paste line 226 and 10 lines either side of it. And mark 226 with a comment.
The problem is not that you have more than 2 tabs, i have 3 tabs in the version i got.
Imma go ingame and TRY and fix this now. Il report back either in this post, or in a new one.
EDIT:
Sorted.
What are you are doing wrong is that you have to of these:
else if POINTSHOP.Menu then POINTSHOP.Menu:Remove() end end end)
You are having one above the storage code and one under it. Remove the one above it/under the inventory code and then it shuld work fine.
Atleast it works for me. Well i cannot equip anything as i dont have the newest version so i cant do "pointshop_respawn" (Im using REV 61). Il probably go ahead and try to implant that into rev 61. Il see what i can get out of it.
Edit:
Also a slightly bug report. I dont know if this is for all versions, but my PlayerDeath hook does not work. Meaning that you can only earn points by killing NPCs. Ive trying sorting the code but it all looks fine. I also looked in the newest revision and its the exact same code.
Sorry for the double post but i had a few new "bug reports" and this could also be taken as a slightly bump.
Just see the pictures, shuld explain enough.
The items are out of the actually menu.
You can JUST hold your mouse over the item and then it spins around out of the menu.
Its not really anything that is a must, but i guess if you got time to it you could get around it.
EDIT:
Aww. What happend to the thumb tags? :/
I think someone posted a fix for this in the WAYWO thread. Something with the render library and scissors.
Alright so _Undefined, I am using your shop for my deathrun server, and i have a question. When people leave the server after buying a hat and come back the hat doesnt show up. Is there a way to fix this? I am using current version of pointshop, and need this fixed
I aren't working on it any more. Use revision 61 if you want a working copy.
sad =/
Does someone know how to make REV61 draw the models when a player buys it instantly ? instead of having to respawn in order to see it ?
Why would you stop working on this? Why?
Exactly how do we get revision61? are there archives?
Posted this back on page 5 (or 6)
Quoting myself:
"Alright so for the people who does not know how to put back your SVN here is a little guide:
1. Right click your folder.
2. Press TortoiseSVN and then press Update to revision.
3. You will have a window appearing and you simply time in 61.
It will delete the folder items and it will update some files aka downgrading them."
What version is this, i like it and want it!!!
Also, REV 61 gives me the same old thing as the origonal post, the first version. I did what you said to do with tortoiuse and it said it did it but...... apperently not
local PANEL = {} function PANEL:Paint() local x, y = self:LocalToScreen( 0, 0 ) local w, h = self:GetSize() local sl, st, sr, sb = x, y, x + w, y + h local p = self while p:GetParent() do p = p:GetParent() local pl, pt = p:LocalToScreen( 0, 0 ) local pr, pb = pl + p:GetWide(), pt + p:GetTall() sl = sl < pl and pl or sl st = st < pt and pt or st sr = sr > pr and pr or sr sb = sb > pb and pb or sb end render.SetScissorRect( sl, st, sr, sb, true ) self.BaseClass.Paint( self ) render.SetScissorRect( 0, 0, 0, 0, false ) end vgui.Register( "DModelPanel2", PANEL, "DModelPanel" )
I'm sure there's a better way to do it, but it works.
Its Crap Version.
Mhee, i just modified it abit.
What do you mean by "the first version"? Once you go back to rev61 everything works fine.
You sir... <3
I aded you on steam please accept
In revision 61 its maked so when people buy a weapon they get it until they die when they die its disappear.
The current code is:
Scout = {
Name = "Scout",
Enabled = true,
Description = "Get a SCOUT sniper!",
Cost = 2500,
Model = "models/weapons/w_snip_scout.mdl",
Functions = {
OnGive = function(ply, item)
ply:Give("weapon_real_cs_scout")
end,
OnTake = function(ply, item)
item.Hooks.PlayerDeath(ply, item)
end
},
Hooks = {
PlayerDeath = function(ply, item)
if ply:PS_HasItem(item.ID) then
ply:PS_TakeItem(item.ID)
if ply:GetWeapon("weapon_real_cs_scout") then
ply:GetWeapon("weapon_real_cs_scout"):Remove()
end
end
end
}
},
Could someone maybe post a new edited code who doesn't make people lose the weapon?
Hey can anyone help me? When I press F4 to bring up the pointshop menu an little error pops up saying something like: [cl_pointshop.lua:135] attempt to index field 'Config' (a nil value). I can't find anything to help me fix it though =(
Thanks in advance. =D
You do realize he's not working on this any more, right?
I did not =P
thanks for telling me though
Use Rev.61
So where do we download it.. or can't we anymore?
The svn thing isn't working, i need a password.
Never downloaded or used SVN's before lol
You don't need a password. http://www.facepunch.com/showthread.php?p=13583073
Used rev 61, exactly the same error and the same problem. Tried a few fixes. i.e. clearing my cache, deleting tons of random addons I've collected etc etc
getting really annoyed now because i'm the only person on TTT that can't buy stuff =(
please anyone!
It doesn't work when I try and sell items back, I reload the store and their still in my inventory, and I can keep reselling the item and earn heaps of points but I don't want that.
Good luck getting the author to try and fix it - He quit Lua scripting.
Go back to Rev 61.
Can someone code a thrid person item into here please? :)
Also this is AMAZING good work _Undefined!
I've removed the SVN. Latest and revision 61 downloads are in OP. Don't contact me about this. Ever.
There are just to many flaws, like when someone sells something it wont remove it.
Grrrr return to rev 61 and everything will be working fine.
Rev 61 works for my server pritty fine now editing it a bit :)
PointShop has a new maintainer. werewolf0020
Awesome, thanks _Undefined
Submitted new revision
So far the only issue its that after you buy or sell an item you have to manually close and open the pointshop window
i swear ill fix this as soon as i can
I'm using this on my server but i keep having problems with it when i try to set points for myself. It ALWAYS comes back with this error "[addons\pointshop\lua\sv_pointshop.lua:166] attempt to call method 'IsAdmin' (a nil value)" Anyone able to help me? Please.
Your admin mod has removed the _R.Player:IsAdmin() function.
I installed ulx & ulib and it wont let me run any commands which admin system should i run?
This isn't related to the PointShop, you should post in the ULX thread.
Added
Also Added new revision And everything Works fine now (:
I'm talking about PointShop commands. Ex: ps_setpoints bleh bleh bleh