[QUOTE=Pandaman09;40935214]Did you make sure you moved the MySQL lib over?[/QUOTE]
My host migrated my files to steampipe for me, and it seems they removed msqloo for some reason. I completely forgot about it's existence. Don't I feel silly.
Well, while we're talking about updates then. My users, I'm running a TTT server, were wanting the ability to equip items in the pointshop while they are spectating. I think this was removed because it kept equipping on their invisible bodies, but if you could make it work that would be fantastic.
I think I might work on points hop for TTT is week, including a better MySQL system and items stuffs. If I make a decent MySQL module would you guys want it?
[QUOTE=Epies;40831930][lua]ITEM.CanPlayerBuy = function(self, ply)
if ( ply:SteamID() == "STEAM_0:1:12345678" ) then return true end
return false
end[/lua][/QUOTE]
Thanks alot
Would it be possible to 'hide' hats from the store or should I just make them owner/admin only?
I'm getting achievements on my server, and completing one or two will give you a hat, so I don't want players to be able to buy it normally.
*cough* [url]http://pointshop.burt0n.net/categories[/url] *cough*
@Below... Good job :P
[QUOTE=Pandaman09;40941922]*cough* [url]http://pointshop.burt0n.net/categories[/url] *cough*[/QUOTE]
Ah, shit, I actually have that bookmarked. I thought this would be more complicated than this.
Has anyone been having hourly server crashes when using Pointshop since the steampipe update?
Server hosts told us to remove addons and see what's causing the crash as there's nothing printed in the console when it reboots. All we have is this and ULX.
Okay I added the Dan Board Player model everything shows up fine, but then when I buy it no points come out of my points, and when I click it again it still says buy, What I did was copied the code from the kliner model and put it in the "danboard" folder and then I replaced the price with a different price and the model with the correct model name and re-named it.
Also the description and the price in the f3 menu is super small, so how would I change the itam font's.
Ok, this took a bit of research on my end, but I finally figured out how to set playermodel colors with the pointshop. Here's the code for one of my models below, works perfectly :D Color is also removed when holstering.
[code]
ITEM.Name = 'Male 1'
ITEM.Price = 250
ITEM.Model = 'models/player/group03/male_01.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
ply._OldColor = ply:GetPlayerColor()
end
if modifications.color ~= nil then
borkolor = modifications.color
ply:SetPlayerColor(Vector( borkolor.r / 255, borkolor.g / 255, borkolor.b / 255))
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
ply:SetPlayerColor(ply._OldColor)
end
end
function ITEM:Modify(modifications)
PS:ShowColorChooser(self, modifications)
end
function ITEM:OnModify(ply, modifications)
self:OnHolster(ply)
self:OnEquip(ply, modifications) -- adds the item back again, with new mods
end[/code]
I was wanting to connect this with the WolfDJ player, so people have to spend points to play songs, how would I do this?
Since the latest greatest update from garry, when I have the pointshop on my server, everyone's blue.
[QUOTE=Eccid;40992787]Color is also removed when holstering.
[/QUOTE]
Why?
[QUOTE=Eccid;40999280]Since the latest greatest update from garry, when I have the pointshop on my server, everyone's blue.[/QUOTE]
If you're running a TTT server check inside the shared.lua file to see if the SetPlayerColor thing is there. It got reset i think
[QUOTE=smithy285;41003717]Why?[/QUOTE]
It saves what color you set the model as, I just mean, if you holster a skin, it won't make any subsequent skin the same color.
I run a TTT server and I do not have this issue.
[QUOTE=V-Rico;40924946]Guys, what's wrong? (Item doesn't remove)
[CODE]function ITEM:OnBuy(ply)
ply:ChatPrint("Bougth and removed")
ply:PS_TakeItem(self.ID)
end[/CODE]
[editline]6th June 2013[/editline]
And one more: how to customize player models?[/QUOTE]
If you haven't had this fixed yet you spelt "bought" wrong
Ok, I've been working on this all night, and cannot figure it out. As you saw above, I just added the ability to color playermodels. Now I want for this to reflect in the preview window. But I can't get it to just color the playermodel based on player color. I've got it to dye everything the player color, but I can't isolate the playermodel only. I could really use some help.
Another issue that has arisen, entities don't color the same way as playermodels. So instead of the preview looking like the player, the face, clothes, and everything are the new color.
[QUOTE=Eccid;41045707]Another issue that has arisen, entities don't color the same way as playermodels. So instead of the preview looking like the player, the face, clothes, and everything are the new color.[/QUOTE]
use :SetPlayerColor
[QUOTE=skullorz;41048296]use :SetPlayerColor[/QUOTE]
I'm not talking about setting the player color, I'm talking about the preview window. I can set player color fine, I posted how to do it in this thread already. I just want the preview window to show the selected color.
Has anyone got a fix for the Pointshop for TTT?
The current issue is that on the start of every round the player models gets reset.
[quote=Bad King Urgrain]
Yes, player_ext.lua, line 271. Note that if you remove this, player colours will be reset on round start.
[/quote]
From the ttt forums. Remove or comment out that line, and all is well.
Anyone know how to make a script that allows you to buy a custom melee weapon from pointshop that replaces the default one( in my case it's Fist). It is basically a "reskin" and the option to remove the weapon and use the default one yet again?
[QUOTE=angelbill5914;41064233]Anyone know how to make a script that allows you to buy a custom melee weapon from pointshop that replaces the default one( in my case it's Fist). It is basically a "reskin" and the option to remove the weapon and use the default one yet again?[/QUOTE]
[URL="http://facepunch.com/showthread.php?t=1246854&p=39697795&viewfull=1#post39697795"]I made a post[/URL] on the other thread how to do this.
I think there should be a special tab or a pop-up menu with simple X Y movement bars for certain items who will not be placed the same way on different playermodels. So I suggest that theres a live option to ajust the setting to make it fit!
[QUOTE=Eccid;41064629][URL="http://facepunch.com/showthread.php?t=1246854&p=39697795&viewfull=1#post39697795"]I made a post[/URL] on the other thread how to do this.[/QUOTE]
Must have been blind when I skimmed past this. Thanks anyway! I will be definitely using this.
[QUOTE=smithy285;41061108]Has anyone got a fix for the Pointshop for TTT?
The current issue is that on the start of every round the player models gets reset.[/QUOTE]
Is there actually a fix for this? It is quite annoying that the pointshop resets everything you have on equipped on a map change or round change.
[QUOTE=angelbill5914;41066195]Is there actually a fix for this? It is quite annoying that the pointshop resets everything you have on equipped on a map change or round change.[/QUOTE]
I posted the fix for this right beneath the post you quoted.
Ah ok bit what does that player color reset mean?
[QUOTE=angelbill5914;41068569]Ah ok bit what does that player color reset mean?[/QUOTE]
BKU set it up so that if you have a player color chosen in sandbox mode, it will transfer over to TTT. Removing that line will enable users to actually use their pointshop models, but will reset their color to default. Though, I did post a way to allow users to color their playermodels through the pointshop on the previous page anyway.
Sorry, you need to Log In to post a reply to this thread.