• WIP: PointShop
    528 replies, posted
Not yet. Will do it tomorrow.
Hey I am still getting this error, when I buy something it says "[PS] -0 points!" and takes away all of my points. The item was worth 15, but it took away 21. It is doing this with all of the items. No error messages in console.
Try that, should be fixed, was a typo.
[QUOTE=_Undefined;25872041]Try that, should be fixed, was a typo.[/QUOTE] Alright, it's fixed!
Can't wait for the MySQL capability :) Are you sure you don't want my script, _Undefined?
Awesome, this is way better with mysql. Was waiting for gbps script, but it looks like he lost it in a hdd crash.
-snip- HURR, im dumb [editline]5th November 2010[/editline] Timer error: @lua/includes/modules/glon.lua:381 expected string to decode! (Got type table) Just using the normal time-point system.
Anyone know how I could give me myself money or can you not?
[QUOTE=haydenbinkley;25881425]Anyone know how I could give me myself money or can you not?[/QUOTE] ps_givemoney playername money, if I recall correctly.
[QUOTE=tgp1994;25881502]ps_givemoney playername money, if I recall correctly.[/QUOTE] Did not work.
[QUOTE=haydenbinkley;25882796]Did not work.[/QUOTE] Whoops, that's ps_givepoints. My bad. Also, ps_setpoints will manually set a player's point count. That is, unless _Undefined changed the commands.
[QUOTE=tgp1994;25883563]Whoops, that's ps_givepoints. My bad. Also, ps_setpoints will manually set a player's point count. That is, unless _Undefined changed the commands.[/QUOTE] There aren't any set/give points on his PointShop.
This looks pretty cool, better that some of the other shops available.
Added console commands. See OP for details.
-snip-
Please add that when you buy a hat, you need to respawn to get it. I nearly buttfucked myself trying to find my hat.
Use this to add item/point sync between servers [url]http://www.facepunch.com/threads/1023540-WIP-MySQL-PData-Replacement[/url]
Could you add something like GroupOnly = {"donor", "idiot", "banned"} So only people in those groups (ply:IsUserGroup) could use it?
[QUOTE=Banana Lord.;25890671]Please add that when you buy a hat, you need to respawn to get it. I nearly buttfucked myself trying to find my hat.[/QUOTE] When thinking of a rp view, you'll see that when you buy a hat and you die and reborn with the hat on your head, it does sound quite dumb.
Ya, better idea, make it appear on my head. IDEA TIME!!! * Let me choose to use RP money so I don't mod the fuck out of this and you update it * Make hats appear WITHOUT respawn * Let me buy multiple items, but only have 1 equipped at a time gogogo
I tried to sell a item, but it gave this error:[lua] [addons\pointshop\lua\sh_items.lua:851] attempt to call method 'HasItem' (a nil value)[/lua]
[QUOTE=_Undefined;25892745]Use this to add item/point sync between servers [url]http://www.facepunch.com/threads/1023540-WIP-MySQL-PData-Replacement[/url][/QUOTE] ... Or, I guess you could make it under something different :\ [QUOTE=.\\Shadow};25883604]There aren't any set/give points on his PointShop.[/QUOTE] [QUOTE=_Undefined;25892745]Use this to add item/point sync between servers [url]http://www.facepunch.com/threads/1023540-WIP-MySQL-PData-Replacement[/url][/QUOTE] Now there are :)
[QUOTE=Staneh;25894965]I tried to sell a item, but it gave this error:[lua] [addons\pointshop\lua\sh_items.lua:851] attempt to call method 'HasItem' (a nil value)[/lua][/QUOTE] Could you post that line please, I'm out and on my phone.
[addons\pointshop\lua\sh_items.lua:851] attempt to call method 'HasItem' (a nil value) It was in lua tags, maybe thats why u didn't see it.
[QUOTE=_Undefined;25896083]Could you post that line please, I'm out and on my phone.[/QUOTE] Here: [lua] if ply:HasItem(item.ID) then ply:TakeItem(item.ID) if ply:GetWeapon("weapon_pistol") then ply:GetWeapon("weapon_pistol"):Remove() end end [/lua]
Oh, god, i'm sorry, I thought u ment the error itself.
Ah. Need to update the items after renaming the functions. Prefix HasItem and TakeItem with PS_ and i'll fix it when I get in.
How do I get an item when its in inventory? Someone on my server bought a pistol but can't use it.
The default pistol removes itself when you die. Edit the file to stop it doing that.
Couple questions: If I wanted to set the pointshop menu to open when you press Q, would it be possible? Can I make it so that when you buy something, you can spawn it again from your inventory, with out selling it? Thank you for being so awesome _undefined
Sorry, you need to Log In to post a reply to this thread.