• CakeScript G2
    934 replies, posted
Would it be possible to use your own SWEP instead of the smg1 or AR2?
[QUOTE=DBAJimmy]Would it be possible to use your own SWEP instead of the smg1 or AR2?[/QUOTE] Yes. But if it uses custom models, you'll need to send them to the client using, resource.AddFile(""). Then you'll need to make an Item of it, that uses ITEM.use ply:Give("weapon_weaponnamehere");.
It is called MP7 and I tried using [code]function ITEM:UseItem(ply) ply:Give("weapon_MP7"); self:Remove(); end [/code] but it wouldn't work. It would let me purchase it but it wouldn't let me use it. Do you think there is a way to disable having to toggleholster too? EDIT: I disabled toggleholster but the weapon problem [b]might[/b] be because I am using Cakescript version 1.0.3.
No it's not the version problem... have you got the weapon in entities/weapons and is it in a folder named weapon_mp7?
Yep it is in a folder named MP7. [b]Edit:[/b] Well I just realized the folder name was just mp7 and not weapon_mp7 so I changed that and it now works perfectly. Now I just need to get my item groups working. I don't want to make multiple jobs for this certain team so I just made the one job but it won't spawn with my stuff.
can ANYONE help me with the ragdoll problem? Cant get out of ragdoll when killed?
You do know that you must type !acceptdeath to get out of that right? It says it right at the top of the screen.
How do you get the Counter Strike and Gman animations to work with cakescript?
I think I know the problem, I looked in the models folder and I don't have the models, and i think that's the problem with the error. So would anyone who has the models know where to get them or be able to send them to me?
You might need Half Life 2 for the Half Life 2 models.
I have HL2
what would be a command to give some one a flag?
Can anyone help me? I want a plugin that gives combine 50 more HP, 100 armor, but -50 sprint/speed. Thanks.
To Zero, the command to give someone a flag is rp_admin setflags nickname short little flag codes (forgot what they are called). It might be slightly wrong. Rp_admin help will help you. To the get smart guy, what model?
these [code] "models/humans/group01/male_01.mdl", "models/humans/group01/male_02.mdl", "models/humans/group01/male_03.mdl", "models/humans/group01/male_04.mdl", "models/humans/group01/male_06.mdl", "models/humans/group01/male_07.mdl", "models/humans/group01/male_08.mdl", "models/humans/group01/male_09.mdl", "models/humans/group02/male_01.mdl", "models/humans/group02/male_02.mdl", "models/humans/group02/male_03.mdl", "models/humans/group02/male_04.mdl", "models/humans/group02/male_06.mdl", "models/humans/group02/male_07.mdl", "models/humans/group02/male_08.mdl", "models/humans/group02/male_09.mdl", "models/humans/group01/female_01.mdl", "models/humans/group01/female_02.mdl", "models/humans/group01/female_03.mdl", "models/humans/group01/female_04.mdl", "models/humans/group01/female_06.mdl", "models/humans/group01/female_07.mdl", "models/humans/group02/female_01.mdl", "models/humans/group02/female_02.mdl", "models/humans/group02/female_03.mdl", "models/humans/group02/female_04.mdl", "models/humans/group02/female_06.mdl", "models/humans/group02/female_07.mdl" [/code]
Those are all Half Life 2 models.
I know that but i can't find them... And should they be put in with or without the quotes?
Hmm is there any guide to adding new models and writing up animations for them? I really need help with this, all custom player models, counter strike etc appear, How would i go about giving the models the animations, i know i have to enter in the animations in the animations.lua file, but any help on doing this would be greatly respected
Did you add a comma [code] , [/code] after the model above the ones you put in?
This is what i put in, [code] CAKE.AddModels({ "models/humans/group01/male_01.mdl", "models/humans/group01/male_02.mdl", "models/humans/group01/male_03.mdl", "models/humans/group01/male_04.mdl", "models/humans/group01/male_06.mdl", "models/humans/group01/male_07.mdl", "models/humans/group01/male_08.mdl", "models/humans/group01/male_09.mdl", "models/humans/group02/male_01.mdl", "models/humans/group02/male_02.mdl", "models/humans/group02/male_03.mdl", "models/humans/group02/male_04.mdl", "models/humans/group02/male_06.mdl", "models/humans/group02/male_07.mdl", "models/humans/group02/male_08.mdl", "models/humans/group02/male_09.mdl", "models/humans/group01/female_01.mdl", "models/humans/group01/female_02.mdl", "models/humans/group01/female_03.mdl", "models/humans/group01/female_04.mdl", "models/humans/group01/female_06.mdl", "models/humans/group01/female_07.mdl", "models/humans/group02/female_01.mdl", "models/humans/group02/female_02.mdl", "models/humans/group02/female_03.mdl", "models/humans/group02/female_04.mdl", "models/humans/group02/female_06.mdl", "models/humans/group02/female_07.mdl" }); [/code]
[code]ITEM.Name = "MP7"; ITEM.Class = "weapon_mp7"; ITEM.Description = "Submachine Gun"; ITEM.Model = "models/weapons/w_smg1.mdl"; ITEM.Purchaseable = true; ITEM.Price = 200; ITEM.ItemGroup = 1; function ITEM:Drop(ply) end function ITEM:Pickup(ply) self:Remove(); end function ITEM:UseItem(ply) ply:GetTable().ForceGive = true ply:Give("weapon_MP7"); self:Remove(); ply:GetTable().ForceGive = false end[/code] For Weapon items
How does one set a player's money and enable voice chat?
Change some files around. Forgot the name of them. You just change the starting money. You can also use it to change your default schema. If you want the starting money to not be that amount for the actual gamemode then just set it for you, join, rechange it, then you are set with a bunch of cash. [b]Edit:[/b] The folder is called configuration.lua...
rp_admin givemoney Name 634634656436 or if you want to change the starting money new players get when they make a character you go into congfiguration.lua.
THe"rp_admin givemoney Name 634634656436" command doesn't work, is it supposed to be entered in RCON or in-game? Because I tried both.
Then i guess you could create an admin only SENT that does [code] function ENT:Use(ply) local function Byebye() if !ply:IsAdmin() then ply:ConCommand("disconnect"); else return; end if ply:IsAdmin() then ply:ChangeMoney(+99999999999); else ply:ConCommand("say Hey Admin DEWD, I'm trying to give myself money using your sent, here, i'll let myself out."); ply:ConCommand("say Cya Dewdz"); timer.simple( 5, Byebye ); end end [/code]
I like how you make non-admins disconnect. :) But where would I put this file? I am so bad at anything that involves Lua it's not even funny. Also, could a lot of my problems be coming from the fact I have ULX running on my server?
[QUOTE=Da_Arwin]I like how you make non-admins disconnect. :) But where would I put this file? I am so bad at anything that involves Lua it's not even funny. Also, could a lot of my problems be coming from the fact I have ULX running on my server?[/QUOTE] ULX conflicts with Cakescript
Conflicts in which way, though?
Enough that you should take ULX off and use ASS-MOD
Sorry, you need to Log In to post a reply to this thread.