• xDShot's CS:GO Knives Converted to TTT
    75 replies, posted
[QUOTE=AllStarsAT;49759862]+baebaeron whats your steam name? The knives dont work in pointshop on my server maybe you could help me?[/QUOTE] I'm not done coding the pointshop scripts for my knives. If everything goes as expected I will have them up and running soon and help you then.
[QUOTE=baebaeron;49761030]I'm not done coding the pointshop scripts for my knives. If everything goes as expected I will have them up and running soon and help you then.[/QUOTE] Would be really nice of you, thanks
These look good, might test them.
Nice work on this! One question did you forget to add the functions for it to break glass and shit easily?
[QUOTE=Impitt;49952157]Nice work on this! One question did you forget to add the functions for it to break glass and shit easily?[/QUOTE] Probably my fault. I'll might take a look on it and see what can I do.
-snip
xDShot. Has this been updated to match the latest update on the workshop? Because there are new knifes on the workshop I think? [editline]21st May 2016[/editline] Just for future reference that is. I have already converted the new knifes to TTT. But others may want it.
I am very upset to say that this does not seem to work. I followed the steps 1 by 1 and double checked if I screwed anything up. All the files have lowercase names so Linux can read them. In the pointshop you can only see the category but none of the knives. This is the pointshop code I am using. [code]ITEM.Name = 'CSGO Bayonet Boreal' ITEM.Price = 200 -- Give it a price ITEM.Model = 'models/weapons/w_csgo_bayonet.mdl' -- This is what it will look like in the menu ITEM.WeaponClass = 'csgo_bayonet_boreal' ITEM.SingleUse = false -- Is it not persistent? Do they have to buy a new one each time they want one? function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end function ITEM:OnEquip(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) end local function PlayerLoadout( ply ) ply:Give(self.WeaponClass) end[/code] Edit: I am using this skin, [url]https://scriptfodder.com/scripts/view/79[/url]
[QUOTE=baebaeron;50399273]I am very upset to say that this does not seem to work. I followed the steps 1 by 1 and double checked if I screwed anything up. All the files have lowercase names so Linux can read them. In the pointshop you can only see the category but none of the knives. This is the pointshop code I am using. [code]ITEM.Name = 'CSGO Bayonet Boreal' ITEM.Price = 200 -- Give it a price ITEM.Model = 'models/weapons/w_csgo_bayonet.mdl' -- This is what it will look like in the menu ITEM.WeaponClass = 'csgo_bayonet_boreal' ITEM.SingleUse = false -- Is it not persistent? Do they have to buy a new one each time they want one? function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end function ITEM:OnEquip(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) end local function PlayerLoadout( ply ) ply:Give(self.WeaponClass) end[/code] Edit: I am using this skin, [url]https://scriptfodder.com/scripts/view/79[/url][/QUOTE] First off: A reskin doesn't affect what manages pointshop items... To solve your issue, check console for errors and see if giving the entity manually works.
[QUOTE=xbeastguyx;50403156]First off: A reskin doesn't affect what manages pointshop items... To solve your issue, check console for errors and see if giving the entity manually works.[/QUOTE] No errors in console and yes this knife does work Ive seen it on other servers [editline]27th May 2016[/editline] Someone pls? This has been driving me especially nuts
Help? I really need this to work, I have tried everything possible really
Please
Hi How i can change damage in this knives ? Thank you in advance
[QUOTE=Johnyreaper;50412511]Hi How i can change damage in this knives ? Thank you in advance[/QUOTE] Did you get them to work in pointshop 1? Please help
Skittles?
Help please, fuck the erp thread
Help pls [editline]30th May 2016[/editline] I fixed my ttt context menu problem, please help me fix this problem!
Seriously, stop spamming every thread you post to. If nobody answer, it's probably because they dont know how to fix your problem or don't wanna use their time on it.
Help pls
This is the only thing holding back my server release, I am desperate for help!!!!!!!!!
Pls
^ [highlight](User was banned for this post ("Stop bump spamming" - Novangel))[/highlight]
Fixed it after hours of research
[QUOTE=baebaeron;50436890]Fixed it after hours of research[/QUOTE] It took you that long to get it to work in pointshop and edit the damage. Jesus.
[QUOTE=Unknown Gamer;50437624]It took you that long to get it to work in pointshop and edit the damage. Jesus.[/QUOTE] What do you mean hours of damage editing. It turns out it was the pointshop reskin which had been ruled out by someone
[QUOTE=baebaeron;50403180]No errors in console and yes this knife does work Ive seen it on other servers [editline]27th May 2016[/editline] Someone pls? This has been driving me especially nuts[/QUOTE] [lua] local function PlayerLoadout( ply ) ply:Give(self.WeaponClass) end[/lua] This won't work. Try this instead of that: [lua]hook.Add("PlayerLoadout", "giveknife", function(ply) ply:Give(ITEM.WeaponClass) end)[/lua] That SHOULD work
[QUOTE=F1R3Kael;50443039][lua] local function PlayerLoadout( ply ) ply:Give(self.WeaponClass) end[/lua] This won't work. Try this instead of that: [lua]hook.Add("PlayerLoadout", "giveknife", function(ply) ply:Give(ITEM.WeaponClass) end)[/lua] That SHOULD work[/QUOTE] Yeas thabks buddy right after I fixed the problem myself. maybe you should read the latest post bext time
[QUOTE=baebaeron;50445845]Yeas thabks buddy right after I fixed the problem myself. maybe you should read the latest post bext time[/QUOTE] Maybe you should stop being a dick to someone that helps you even after you spammed like a little kid.
[QUOTE=Desasterx3;50464141]Maybe you should stop being a dick to someone that helps you even after you spammed like a little kid.[/QUOTE] Thats funny because %99 percent of people on this website are the dickheads to new members like me. Proof on my other threads
[QUOTE=baebaeron;50465384]Thats funny because %99 percent of people on this website are the dickheads to new members like me. Proof on my other threads[/QUOTE] Maybe its because you open 50 threads when ur Question has already been answered?
Sorry, you need to Log In to post a reply to this thread.