[QUOTE=yahan]Nori whats the group name for citizen's and cp's?[/QUOTE]
Check CakescriptG2\gamemode\schemes\hl2rp.lua for the group names!
[b]Edit:[/b]
[QUOTE=Nori]Change CAKE.ConVars["SalaryEnabled"] = "1" to just 1. No quotes.[/QUOTE]
Still doesn't work, so far i've tried:
CAKE.ConVars[ "SalaryEnabled" ] = 1;
and
CAKE.ConVars[ "SalaryEnabled" ] = 1
None work
This is the errormessage i get, whatever i set SalaryEnabled to, be it 1, "1" or 1; or whatever:
Timer Error: CakeScriptG2/gamemode/init.lua:78: attempt to index global 'ply' (a nil value)
This means that there is something wrong with line 78:
if( CAKE.Teams[ ply:Team( ) ] != nil ) then
Regards, Pete
why can i not own doors?
Maybe you are doing it wrong, if you are pressing f4 you are not doing it right.
Hold tab and right-click, it will bring up an action bar, this action bar applies to many items, doors, guns, you name it!
Whoops. change ply:Team( ) to v:Team( ) until I release the next version of which I will do very soon.
[b]Edit:[/b]
We're now betatesting 1.0.3
And by "we" he means Me. >.>
[url=http://www.garrysmod.org/downloads/?a=view&id=41551][img]http://www.garrysmod.org/img/?t=dll&id=41551[/img][/url]
CakeScript G2 1.0.3 is released!
Perfect timing. Looking for a good RP script to run and the menus are sexy.
Got a nice
[code]
cakescriptg2\gamemode\cl_charactercreate.lua:50: attempt to concatenate field 'ChosenModel' (a nil value)
[/code]
When I pressed OK.
I'll fix it myself but letting you know
Crizzap. :uhoh:
I want to try it but my dedi crashes at every time I start it. (I'm just updating it) its now at 1451.56% :lol:
€dit: :lol: He got banned?
Apparently yes.. for stating the obvious ;/
Daaamn youuuu facepuuunch creew! (just joking, please don't ban me) :)
[QUOTE=Ankpuss]Apparently yes.. for stating the obvious ;/
Daaamn youuuu facepuuunch creew! (just joking, please don't ban me) :)[/QUOTE]
:lol:
It does not matter what i do, salaries still don't work.
When i try to play with the regular version (not my edited one) i get the errormessage with the line 78 being being wrong again, i change ply:team to v:team or whatever and it stops giving me that errormessage.
Line 78 error:
Timer Error: CakeScriptG2/gamemode/init.lua:78: attempt to index global 'ply' (a nil value)
Now i get
Timer Error: CakeScriptG2\gamemode\player_data.lua:251: attempt to index local 'ply' (a nil value)
instead, and i still don't get money.
In configuration.lua i have tried setting the salary value to 1 without quotes, without the ;, and it still doesn't work.
I even set the delay on the salary to 1 so that it would give me cash every minute so i could see if it worked, but still, nothing.
Do the salaries work for anyone?
If they do, please tell me how to fix this, because it is starting to annoy me.
Regards, Pete
[b]Edit:[/b]
Extraragdolls seems to be broken as well, when i have set someones ragdoll limit (including my own) they can spawn 1 ragdoll and then they get this error message every time they try to spawn another one (even if i gave them a higher number than 1)
I also tried restarting the server, setting the value to 1 etc and more.
If you spawn a ragdoll, remove it, then you can't spawn another one.
I get this errormessage for both occurances:
ERROR: GAMEMODE:'PlayerSpawnRagdoll' Failed: ...eScriptG2\gamemode\schemas/global/plugins/limits.lua:110: attempt to call method 'IsValid' (a nil value)
Looking it up right now
I didn't notice that one. I'll release a new version soon. (This is my alt)
I'm just now realizing that my salary function is chopped and screwed to hell.
To fix, replace all of it with this:
[lua]
timer.Create( "givemoney", CAKE.ConVars[ "SalaryInterval" ] * 60, 0, function( )
if( CAKE.ConVars[ "SalaryEnabled" ] == "1" ) then
for k, v in pairs( player.GetAll( ) ) do
if( CAKE.Teams[ v:Team( ) ] != nil ) then
CAKE.ChangeMoney( v, CAKE.Teams[ v:Team( ) ][ "salary" ] );
CAKE.SendChat( v, "Paycheck! " .. CAKE.Teams[ v:Team( ) ][ "salary" ] .. " credits earned." );
end
end
end
end )
[/lua]
That's a fixed version.
Thanks it works now and hey Pete i'm experimenting with cakescript for StargateRP
hehehe, same here, i actually got permission from Nori himself to use his gamemode as a base, so we are good to go! ;D
[QUOTE=Ankpuss]hehehe, same here, i actually got permission from Nori himself to use his gamemode as a base, so we are good to go! ;D[/QUOTE]
So long as it is schemas and plugins for the most part.
Also, 1.0.4 released. Fixed the ragdoll spawning issue and salaries.
[QUOTE=FPSR Jake]I didn't notice that one. I'll release a new version soon. (This is my alt)
I'm just now realizing that my salary function is chopped and screwed to hell.
To fix, replace all of it with this:
[lua]
timer.Create( "givemoney", CAKE.ConVars[ "SalaryInterval" ] * 60, 0, function( )
if( CAKE.ConVars[ "SalaryEnabled" ] == "1" ) then
for k, v in pairs( player.GetAll( ) ) do
if( CAKE.Teams[ v:Team( ) ] != nil ) then
CAKE.ChangeMoney( v, CAKE.Teams[ v:Team( ) ][ "salary" ] );
CAKE.SendChat( v, "Paycheck! " .. CAKE.Teams[ v:Team( ) ][ "salary" ] .. " credits earned." );
end
end
end
end )
[/lua]
That's a fixed version.[/QUOTE]
Testing right now, Thank you!
[b]Edit:[/b]
[QUOTE=FPSR Jake]So long as it is schemas and plugins for the most part.
Also, 1.0.4 released. Fixed the ragdoll spawning issue and salaries.[/QUOTE]
Awesome!
[b]Edit:[/b]
[QUOTE=FPSR Jake]So long as it is schemas and plugins for the most part.
Also, 1.0.4 released. Fixed the ragdoll spawning issue and salaries.[/QUOTE]
Ofcourse :)
[b]Edit:[/b]
Also could you re-add the stunsticks? I was thinking about maybe combining stunsticks with the feign death script if you know what it is.
I use an electrical chair on my server, so people that are "feigning their death" can be killed by it, or bullets or whatever.
It would be nice if we had a stunbaton that could issue the feign_death command on players.
Ofcourse this is something i will attept to code myself but the hard part is implementing it into cakescript.
[b]Edit:[/b]
So if you re-add the stunsticks i might be able to code a seperate plugin that issues the command feign_death when someone is struck by the baton.
Pretty awesome, but I'd like to see a MySQL support, and my business menu working. It's just blank, even through I have business access.
[QUOTE=DarKSunrise]Pretty awesome, but I'd like to see a MySQL support, and my business menu working. It's just blank, even through I have business access.[/QUOTE]
Certain teams have certain business items to purchase. At the moment, rebel and combine teams don't have anything.
We need the C.I.D please put that back!
one thing you messed up. people who like to do hl2 roleplay use cids
[QUOTE=XCrazyFreakX]We need the C.I.D please put that back![/QUOTE]
Sorry but the CID kept reverting to a number and it was basically useless.
well fix it!
you don't need anything what is useless it's just more work after!
this script is going to cool,to ok,to bad,TO WORSE i'm sorry but i was using rations and cid. now this script bairly has any use for half life 2 roleplay now!
People people! Stop being so rude towards him!
Don't just say: WELL FIX IT!
How about you try fixing it yourselves first if you so desperately want the feature, that's what i do.
I experiment first BEFORE I request something.
You don't even seem to experiment and from the looks of it your are DEMANDING it.
This is just pure shit, be nice and he might add it as a plugin in later versions.
I am pretty sure that CID's were part of the whole gamemode in the past version which it is not supposed to be, because the gamemode is not really hl2rp, the scheme is, you can use whatever schemes you want and if you want to use let's say an alien rp then you wouldn't want the CID's would you?
Experiment on your own with cakescript, don't make demands, make requests.
Make plugins if you want cid's back, the code for the cid's is basically waiting for you there in the past versions of the script, you just have to find it.
Now be nice!
[b]Edit:[/b]
I think that this gamemode still rocks, you're on the right track man, don't listen to these guys, you ROCK!
[QUOTE=Ankpuss]People people! Stop being so rude towards him!
Don't just say: WELL FIX IT!
How about you try fixing it yourselves first if you so desperately want the feature, that's what i do.
I experiment first BEFORE I request something.
You don't even seem to experiment and from the looks of it your are DEMANDING it.
This is just pure shit, be nice and he might add it as a plugin in later versions.
I am pretty sure that CID's were part of the whole gamemode in the past version which it is not supposed to be, because the gamemode is not really hl2rp, the scheme is, you can use whatever schemes you want and if you want to use let's say an alien rp then you wouldn't want the CID's would you?
Experiment on your own with cakescript, don't make demands, make requests.
Make plugins if you want cid's back, the code for the cid's is basically waiting for you there in the past versions of the script, you just have to find it.
Now be nice!
[b]Edit:[/b]
I think that this gamemode still rocks, you're on the right track man, don't listen to these guys, you ROCK![/QUOTE]
What do you mean with THESE GUYS??? I only helped him(by defending him!!!!!)
Bye The Way: I never requested anything!
By these guys i mean everyone that demand stuff, are rude to the creator and such, i was not pointing in your direction.
[QUOTE=XCrazyFreakX]this script is going to cool,to ok,to bad,TO WORSE i'm sorry but i was using rations and cid. now this script bairly has any use for half life 2 roleplay now![/QUOTE]
CIDs don't exist in the HL2 world, and rations are there. Use /ration. :rolleye:
[b]Edit:[/b]
[QUOTE=XCrazyFreakX]well fix it![/QUOTE]
It's unfixable. KeyValuesToTable messes it up, and there's nothing I can do about it. It's because of the fact that the maximum value for a number is around 2 billion, and that's what the CID maxes out to when it tries to load it as a number. It's absolutely unfixable.
Sorry, you need to Log In to post a reply to this thread.