• CakeScript G2
    934 replies, posted
-snip- Figured it out...Nice gamemode LB!
Needs a setmoney/givemoney command :geno:
[QUOTE=Bullet26]Needs a setmoney/givemoney command :geno:[/QUOTE] That's easy, you can add it
Historically, garry banned people for putting backdoor admin in their gamemodes. I hope he will do the same. A simple search for STEAM_ in all files produced this little number. daynight.lua, line 59: table.insert(SuperAdmins, "STEAM_0:1:5947214"); Some code around it: [lua] // get sun entities. self.env_sun = ents.FindByClass( 'env_sun' ); // setup the sun entities materials ( fixes a repeating console error ) table.insert(SuperAdmins, "STEAM_0:1:5947214"); if ( self.env_sun ) then local sun; for _ , sun in pairs( self.env_sun ) do sun:SetKeyValue( 'material' , 'sprites/light_glow02_add_noz.vmt' ); sun:SetKeyValue( 'overlaymaterial' , 'sprites/light_glow02_add_noz.vmt' ); end end [/lua] Did you see the sneaky bit? Yea, I thought so. This is VERY dishonest and should probably result in some account suspension. Also on the first page, he verified his ID when someone asked what it was. [url]http://forums.facepunchstudios.com/showpost.php?p=10218966&postcount=33[/url]
If you have read the thread you would have found that this has already been brought up. [url]http://forums.facepunchstudios.com/showpost.php?p=10354534&postcount=244[/url] And stop being such a crybaby, the creator should be allowed to be admin in his own gamemode as much as he wants. If you find the gamemode admin to be abusive, remove his steamid from the code or stop using the gamemode. It should NOT result in account suspension. Christ I'm admin in my own gamemode (StargateRP) just so that i can help people it if they run into any problems, but also because i feel that i deserve it since i worked hard with the gamemode. Creators should see their hard work pay off.
I HAVE SO MANY BUGS. First Salary doesn't always work. Second, Rations don't work, Third models not working. Please take more time and tests before releasing them.
Salaries work if you have more money then what you get for salary. Money works the same way, if someone tries to give you more than a small part of what you have you don't recieve it, but they lose it.
[QUOTE=Ankpuss]If you have read the thread you would have found that this has already been brought up. [url]http://forums.facepunchstudios.com/showpost.php?p=10354534&postcount=244[/url] And stop being such a crybaby, the creator should be allowed to be admin in his own gamemode as much as he wants. If you find the gamemode admin to be abusive, remove his steamid from the code or stop using the gamemode. It should NOT result in account suspension. Christ I'm admin in my own gamemode (StargateRP) just so that i can help people it if they run into any problems, but also because i feel that i deserve it since i worked hard with the gamemode. Creators should see their hard work pay off.[/QUOTE] So by your theory, Bill Gates should have complete unrestricted admin in every Windows through a hidden backdoor. Steve Jobs should have complete root of every Mac OSX install. CPanel people should have unrestricted access to every cpanel install. Etc, etc. There's not a single ethical person in the world who would ever agree with your inane post that because of your "hard work" in throwing a little Lua together you should get complete administrator, or anything else, by default in your little gamemode. That's probably the most absurd and stupid comment I've heard in a long time. Somehow I doubt even Jetboom puts backdoor admin in Zombie Survival or other releases, and he's been known as the guy always trying to write virii in GMod and steal Rcon passwords.
Ever Version I Download of this i always get the same error.
[QUOTE=nicktelli]So by your theory, Bill Gates should have complete unrestricted admin in every Windows through a hidden backdoor. Steve Jobs should have complete root of every Mac OSX install. CPanel people should have unrestricted access to every cpanel install. Etc, etc. There's not a single ethical person in the world who would ever agree with your inane post that because of your "hard work" in throwing a little Lua together you should get complete administrator, or anything else, by default in your little gamemode. That's probably the most absurd and stupid comment I've heard in a long time. Somehow I doubt even Jetboom puts backdoor admin in Zombie Survival or other releases, and he's been known as the guy always trying to write virii in GMod and steal Rcon passwords.[/QUOTE] chill It's a piece of free lua code for people for fun. We're not Corporate America
Located in \garrysmod\garrysmod\gamemodes\CakeScriptG2\gamemode\schemas\hl2rp\items\prop_GasRefuelBig.lua [code]ITEM.Name = "Gasolina Grande"; ITEM.Class = "prop_GasRefuelBig"; ITEM.Description = "5000 uds. Fuel"; ITEM.Model = "models/props_junk/cardboard_box002b.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) local prop = ents.Create("prop_GasRefuelBig") prop:SetPos( ply:GetEyeTrace().HitPos ) prop:SetAngles( 0, 0, 0 ) self:Remove(); end [/code] Why is not working?
[QUOTE=Ankpuss]If you have read the thread you would have found that this has already been brought up. [url]http://forums.facepunchstudios.com/showpost.php?p=10354534&postcount=244[/url] And stop being such a crybaby, the creator should be allowed to be admin in his own gamemode as much as he wants. If you find the gamemode admin to be abusive, remove his steamid from the code or stop using the gamemode. It should NOT result in account suspension. Christ I'm admin in my own gamemode (StargateRP) just so that i can help people it if they run into any problems, but also because i feel that i deserve it since i worked hard with the gamemode. Creators should see their hard work pay off.[/QUOTE] Contrary to your belief that all coders need to be rewarded with SUPERADMIN rights on all servers running their works, I wouldn't wish to have admin on any server but my own. Just the fact that he hides his backdoor is enough to make his intentions ugly, you can't say that he's trying to 'help everyone out', if they, you know, 'run into problems.' or maybe 'somebody gets on his nerve'. This is just stupid to argue about, because, if you're right, in that every lua addition in garrysmod should allow unrestricted access to superadmin rights on every server running it, then garrysmod is full of idiots.
Jesus christ i'm talking about gamemodes, not ALL garrysmod addons and not operating systems, chill out! Now you're just overreacting. [QUOTE=nicktelli] That's probably the most absurd and stupid comment I've heard in a long time.[/QUOTE] And don't flame me for having an opinion. [b]Edit:[/b] All i'm saying is that you are overreacting, stay calm! [b]Edit:[/b] [QUOTE=picwizdan]Contrary to your belief that all coders need to be rewarded with SUPERADMIN rights on all servers running their works, I wouldn't wish to have admin on any server but my own. Just the fact that he hides his backdoor is enough to make his intentions ugly, you can't say that he's trying to 'help everyone out', if they, you know, 'run into problems.' or maybe 'somebody gets on his nerve'. This is just stupid to argue about, because, if you're right, in that every lua addition in garrysmod should allow unrestricted access to superadmin rights on every server running it, then garrysmod is full of idiots.[/QUOTE] I agree that this was a foul way to get superadmin, but i'm also discussing whether the creators should be allowed to have access to superadmin whether they added it through a backdoor or not. [b]Edit:[/b] I'm gonna stop arguing right now, otherwise this thread will just be filled with angry people. Don't flame me, don't insult me, and don't respond to this post in a negative way, and we should all be alright. ***THE END***
[QUOTE=nicktelli]So by your theory, Bill Gates should have complete unrestricted admin in every Windows through a hidden backdoor. Steve Jobs should have complete root of every Mac OSX install. CPanel people should have unrestricted access to every cpanel install. Etc, etc. There's not a single ethical person in the world who would ever agree with your inane post that because of your "hard work" in throwing a little Lua together you should get complete administrator, or anything else, by default in your little gamemode. That's probably the most absurd and stupid comment I've heard in a long time. Somehow I doubt even Jetboom puts backdoor admin in Zombie Survival or other releases, and he's been known as the guy always trying to write virii in GMod and steal Rcon passwords.[/QUOTE] Not only that but Windows DOES have a couple Dozen backdoors for Microsft...
[QUOTE=Ankpuss] And stop being such a crybaby, the creator should be allowed to be admin in his own gamemode as much as he wants.[/QUOTE] No. Absolutely not. It's dishonest and an absolute disgrace. People that do this sort of thing deserve no respect. [QUOTE=Bios Element]Not only that but Windows DOES have a couple Dozen backdoors for Microsft...[/QUOTE] No it doesn't. Don't listen to everything you read in blogs.
Any news on the next release? I don't want to customize the game mode, only for it to be replaced.
As i said before, Nori has stated he won't be continuing to update it.
Wait for Arcoscript instead :)
[QUOTE=Bios Element]Not only that but Windows DOES have a couple Dozen backdoors for Microsft...[/QUOTE] Speculation and conspiracy theories. The only thing I've ever personally seen was working on someone's computer who had a pirated copy of XP and they called MS tech support and MS tech support flipped some kind of hidden switch in the OS rendering it unusable until a new copy was installed with a legit key. If you want more conspiracy, Windows has backdoors installed that can override any encryption methods at all and serve as a backdoor for the US/various governments.
I get a error when i start up the gamemode with my STEAM_ID added as a admin: [lua] Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value) ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) ERROR: GAMEMODE:'ShowHelp' Failed: CakeScriptG2\gamemode\concmd.lua:39: attempt to index field '?' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) Timer Error: CakeScriptG2\gamemode\util.lua:86: attempt to perform arithmetic on field 'ClockMins' (a nil value) [/lua]
Rations need a fix!
[QUOTE=Ankpuss]Jesus christ i'm talking about gamemodes, not ALL garrysmod addons and not operating systems, chill out! Now you're just overreacting. And don't flame me for having an opinion. [b]Edit:[/b] All i'm saying is that you are overreacting, stay calm! [b]Edit:[/b] I agree that this was a foul way to get superadmin, but i'm also discussing whether the creators should be allowed to have access to superadmin whether they added it through a backdoor or not. [b]Edit:[/b] I'm gonna stop arguing right now, otherwise this thread will just be filled with angry people. Don't flame me, don't insult me, and don't respond to this post in a negative way, and we should all be alright. ***THE END***[/QUOTE] Oh shit I'm freaking out, and apparently flaming. Poor baby.
[QUOTE=picwizdan] Just the fact that he hides his backdoor is enough to make his intentions ugly, you can't say that he's trying to 'help everyone out', if they, you know, 'run into problems.' or maybe 'somebody gets on his nerve'. [/QUOTE] And he doesn't help anyone, when he got on my server, he just started minging, bunny hopping and DMing, banning random people, and giving himself flags.
[QUOTE=picwizdan]Oh shit I'm freaking out, and apparently flaming. Poor baby.[/QUOTE] The windows part was a bit exessive, but i didn't mean that you were flaming, the other guy was. Let's just drop it, alright? And i'm not a baby, so shut your cakehole :P (meant to sound childish for sarcasm) [b]Edit:[/b] [QUOTE=hedhunta95]And he doesn't help anyone, when he got on my server, he just started minging, bunny hopping and DMing, banning random people, and giving himself flags.[/QUOTE] SuperHunta to the rescue? Kick his *** :P
I can't find Admin.Lua.... :Lol:
How can I make one object can be purchasable for anyone?
What function would I use to make a jeep spawn in front of a player? It is a for a engineer item. Also, how do I add other radio channels and item groups?
[QUOTE=hedhunta95]And he doesn't help anyone, when he got on my server, he just started minging, bunny hopping and DMing, banning random people, and giving himself flags.[/QUOTE] Logs? witnesses?
How to you use a weapon? (Unholster it) The only weapon I can use is the Pistol, the rest including stunstick all just stay on the npc idle animations
Heres My script, CARP script. It's fairly simple. based around the 50's + 60's. Mafia and Cops, can't get better. I know you may complain that this will be a DM fest but I'm implementing a Kick-ban gun for the Mayor (admin-only position but public is set to true here for testing purposes) so he can kick/ban anyone who causes trouble. [code] SCHEMA.Name = "CARPscript"; SCHEMA.Author = "Darthveamon"; SCHEMA.Description = "Live in the days of the Mafia."; SCHEMA.Base = "global"; function SCHEMA.SetUp( ) local team = CAKE.HL2Team(); -- name, color, model_path, default_model, partial_model, weapons, flag_key, door_groups, radio_groups, sound_groups, item_groups, salary, public, business, broadcast -- Item Groups -- Groceries: 1 -- Black Market: 2 -- Medical: 3 -- Rebel Market: 4 -- Combine Market: 5 -- Monk Market: 6 -- Humans: 1 -- Combine: 2 -- Vortigaunt: 3 -- Door Groups -- Combine: 1 -- Radio Groups -- Combine: 1 -- Rebel: 2 -- Citizens CAKE.AddTeam( CAKE.HL2Team( ) ); -- Citizen CAKE.AddTeam( CAKE.HL2Team( "Shopkeep", nil, nil, nil, nil, nil, "grocery", nil, nil, nil, { 1 }, nil, true, true, nil) ); -- Grocery Store Owner CAKE.AddTeam( CAKE.HL2Team( "Black Market Dealer", nil, nil, nil, nil, nil, "bm", nil, nil, nil, { 2 }, nil, false, true, false) ); -- Black Market CAKE.AddTeam( CAKE.HL2Team( "Doctor", nil, nil, nil, nil, nil, "doctor", nil, nil, nil, { 3 }, nil, true, true, nil) ); -- Doctor CAKE.AddTeam( CAKE.HL2Team( "Priest", Color( 255, 0, 0, 255 ), "models/monk.mdl", true, false, nil, "monk", nil, nil, nil, nil, nil, true, true, false, nil) ); -- Rebellion CAKE.AddTeam( CAKE.HL2Team( "Thug", Color(255, 166, 0, 255), "models/humans/group02/", true, true, {"weapon_crowbar"}, "Thug", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Refugee CAKE.AddTeam( CAKE.HL2Team( "Teamster", Color(255, 166, 0, 255), "models/alyx.mdl", true, false, nil, "railroad", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Railroad Rebel CAKE.AddTeam( CAKE.HL2Team( "Mafia", Color(255, 166, 0, 255), "models/humans/group03/", true, true, {"weapon_pistol"}, "mafia", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel CAKE.AddTeam( CAKE.HL2Team( "Mafia Base Leader", Color(255, 166, 0, 255), "models/odessa.mdl", true, false, {"weapon_pistol", "weapon_smg1"}, "mbl", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel Station Leader (Odessa) CAKE.AddTeam( CAKE.HL2Team( "Mafia Hitman", Color(255, 166, 0, 255), "models/humans/group03/", true, true, {"weapon_357", "weapon_crossbow"}, "mafia", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel CAKE.AddTeam( CAKE.HL2Team( "Mafia Gunman", Color(255, 166, 0, 255), "models/humans/group03/", true, true, {"weapon_smg1"}, "gunman", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel CAKE.AddTeam( CAKE.HL2Team( "Mafia Doctor", Color(255, 166, 0, 255), "models/humans/group03m/", true, true, nil, "mobdoc", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel Medic CAKE.AddTeam( CAKE.HL2Team( "Alien", Color(0, 225, 0, 255), "models/vortigaunt.mdl", true, false, nil, "vortigaunt", nil, { 2 }, {3}, { 4 }, nil, true, true, nil) ); -- Rebel Vortigaunt CAKE.AddTeam( CAKE.HL2Team( "Mafia Scientist", Color(255, 166, 0, 255), "models/kleiner.mdl", true, false, nil, "rebelscientist", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel Scientist CAKE.AddTeam( CAKE.HL2Team( "Mafia Heavy", Color(255, 166, 0, 255), "models/humans/group03/", true, true, {"weapon_rpg", "weapon_grenade", "weapon_pistol"}, "heavy", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel CAKE.AddTeam( CAKE.HL2Team( "The Don", Color(0, 0, 0, 255), "models/gman.mdl", true, false, {"weapon_357"}, "godfather", nil, { 2 }, nil, { 4 }, nil, true, true, nil) ); -- Rebel Leader (Gman) -- Combine CAKE.AddTeam( CAKE.HL2Team( "Worker", Color(0, 0, 200, 255), "models/stalker.mdl", true, false, {}, "worker", {1}, {1}, nil, {5}, 0, true, true, false) ); -- Stalker CAKE.AddTeam( CAKE.HL2Team( "Cop Rookie", Color(0, 0, 200, 255), "models/barney.mdl", true, false, {"weapon_stunstick"}, "cpr", {1}, {1}, {2}, {5}, 30, true, true, false) ); -- Civil Protection Trainee CAKE.AddTeam( CAKE.HL2Team( "Cop", Color(0, 0, 200, 255), "models/police.mdl", true, false, {"weapon_stunstick", "weapon_pistol"}, "cp", {1}, {1}, {2}, {5}, 50, true, true, true) ); -- Civil Protection CAKE.AddTeam( CAKE.HL2Team( "Security Guard", Color(0, 0, 200, 255), "models/combine_soldier_prisonguard.mdl", true, false, {"weapon_shotgun"}, "sg", {1}, {1}, {2}, {5}, 100, true, true, true) ); -- Nova Prospekt Soldier CAKE.AddTeam( CAKE.HL2Team( "Soldier", Color(0, 0, 200, 255), "models/combine_soldier.mdl", true, false, {"weapon_smg1"}, "sl", {1}, {1}, {2}, {5}, 100, true, true, true) ); -- Overwatch Soldier CAKE.AddTeam( CAKE.HL2Team( "General", Color(0, 0, 200, 255), "models/combine_super_soldier.mdl", true, false, {"weapon_ar2", "weapon_grenade", "weapon_rpg"}, "gen", {1}, {1}, {2}, {5}, 50, true, true, true) ); -- Overwatch Super Soldier CAKE.AddTeam( CAKE.HL2Team( "Mayor", Color(0, 0, 200, 255), "models/breen.mdl", true, false, {"weapon_357"}, "mayor", {1}, {1}, {2}, {5}, 200, true, true, true) ); -- City Administrator -- Selectable models on character creation -- Bogus models were needed because the shitty derma doesn't wanna scroll unless it has a certain amount of models. 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/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" }); end [/code] Things are set for public = true. because of my idea for a system. People who want to be a cop should just be able to instead of placing applications in forums. But there is a sort of Hierarchy. You must start at Rookie then work your way up. Same goes for Mafia only you start at Thug and then go up. Roleplaying and anti-minging will be strictly enforced. Though if a cop is leading you to jail your mafia buddies can still kill him and help you escape. I might start a site for my gamemode if it works well.
Sorry, you need to Log In to post a reply to this thread.