The first exam week is over, so I released an update for DarkRP.
/911 doesn't work, ive tried calling it but the cps say nothing happened
Yup, tryed /911 too, didn't work. I didn't even get a error.
[QUOTE=doctorjohndorian;22081849]/911 doesn't work, ive tried calling it but the cps say nothing happened[/QUOTE]
[QUOTE=Persious;22082119]Yup, tryed /911 too, didn't work. I didn't even get a error.[/QUOTE]
Here's how it works:
For damage:
1) You take damage, must be caused by another player.
2) You type /911
3) RP_Downtown_v2, in the little reception like office, a screen should light up with flashing lights and an alarm.
4) If a player presses e on this screen, it will make 'Caller' appear over the head of the person who dialled 911, and 'Attacker' (or something like that) appear over the head of the person who damaged you.
For illegal entities:
1) Point your crosshair at the illegal entity
2) Type /report
3) & 4) Same as for damage.
You have to have recently taken damage for 911 to work.
[QUOTE=Drakehawke;22018677]Copy the current money printer code into a differently named folder in the entities folder, like, money_printer2, then edit to code to however you want it, and add the entity to the F4 menu in addentities.lua
I added two extra money printers, a shit one that costs $500, prints $100 and is likely to explode, and a good one that costs $2000, prints $500, and is less likely to explode. And they have different models.
I'll upload them if you'd like..[/QUOTE]
in the copied folder, what file do i edit and what lines do i edit?
[QUOTE=bananaslicer;22087180]in the copied folder, what file do i edit and what lines do i edit?[/QUOTE]
Depends what you want changing..
[QUOTE=Drakehawke;22082382]
3) RP_Downtown_v2, in the little reception like office, a screen should light up with flashing lights and an alarm.[/QUOTE]
Really? That sounds awesome, but does it work on any other maps? What about for us mappers: is there a way to specify where it shows up?
[QUOTE=Neo Kabuto;22089125]Really? That sounds awesome, but does it work on any other maps? What about for us mappers: is there a way to specify where it shows up?[/QUOTE]
I hear he said something about a way of setting it for other maps, via a command or an entity admins can spawn, I don't think it's been implemented yet though.
It has been implemented.
[QUOTE=FPtje;22096533]It has been implemented.[/QUOTE]
How do you set it's position?
Physgun it and freeze it.
[QUOTE=FPtje;22103581]Physgun it and freeze it.[/QUOTE]
How do you spawn it on a different map though, the q menu?
How do you make doors save, such as group doors, my custom ones don't save
[QUOTE=erie1555;22108812]How do you make doors save, such as group doors, my custom ones don't save[/QUOTE]
There's two other people than me who've reported this problem, I doubt it was just my database messing up..
How do you delete /call completely in DarkRP?
[QUOTE=Dino Penis;22112223]How do you delete /call completely in DarkRP?[/QUOTE]
Find where it does AddChatCommand("/call"........ and delete that line.
What file would that be in?
[QUOTE=Dino Penis;22115518]What file would that be in?[/QUOTE]
I'm not entirely sure, but I'd put money on gamemode/main.lua. I'll check.
[editline]12:18AM[/editline]
Yep, confirmed, [url=http://code.google.com/p/darkrp/source/browse/trunk/gamemode/main.lua#1248]main.lua:1248.[/url]
Anything updated yet? How does the /911 and /report items work? Nothing happens??
[QUOTE=Dwatring;22117293]Anything updated yet? How does the /911 and /report items work? Nothing happens??[/QUOTE]
Go back a page, I explained it fully.
[QUOTE=Drakehawke;22121396]Go back a page, I explained it fully.[/QUOTE]
Yep,saw that after I posted. Thanks.
[QUOTE=Drakehawke;22088013]Depends what you want changing..[/QUOTE]
I want to change the amount of money the printer spawns, rate in which the printer explodes/catches fire, and the health the printer has.
[QUOTE=bananaslicer;22128662]I want to change the amount of money the printer spawns, rate in which the printer explodes/catches fire, and the health the printer has.[/QUOTE]
[b][i][u]To change the amount of money spawned:[/b][/i][/u]
DarkRP\entities\entities\<your_custom_printers_folder>\init.lua
Lines 76-79
[lua]
local amount = GetConVarNumber("mprintamount")
if amount == 0 then
amount = 250
end
[/lua]
Replace the above with:
[lua]
local amount = 500 -- amount you want it to print
[/lua]
Delete the other three lines, 77, 78 and 79.
[b][i][u]To change the chance of it exploding:[/b][/i][/u]
DarkRP\entities\entities\<your_custom_printers_folder>\init.lua
Line 74
[lua]
if math.random(1, 22) == 3 then self:BurstIntoFlames() end
[/lua]
The two numbers in the brackets, represent the chance of it bursting into flames, every time the money printer prints it chooses a random number between 1 and 22, if that number is 3 the printer sets on fire, so in the default example there is a 1/22 chance of it exploding.
To make it less likely to explode increase the second number (22).
To make it more likely to explode decrease the second number (22).
Example:
[lua]
if math.random(1, 35) == 3 then self:BurstIntoFlames() end
[/lua]
In this example there is a 1/35 chance of the printer bursting into flames.
[b][i][u]To change the amount of health the printer has:[/b][/i][/u]
DarkRP\entities\entities\<your_custom_printers_folder>\init.lua
Line 14
[lua]
self.damage = 100
[/lua]
I [i][u]think[/u][/i] that number is the amount of health the printer has, so change it to what you want.
Has this been tested using the linux binaries? I'm trying to use DarkRP on my server and at first it kept spamming me about cl_init, so I figured I wasn't downloading from the server. I went ahead and downloaded DarkRP and stuck it in my gamemodes folder to see if that was the issue, that got the hud working. However now there are a few problems with it, none of the F menu keys work and it won't display names.
How to I setup Group Tool Restrictions in FPP so that it will obey the restrictions I set for tools within that group and also limit them to the job I choose Tool Restrictions area?
So, for example, you'd like say, group "test" to be able to access a tool, but ONLY when they're a certain job?
That is correct [URL="http://www.facepunch.com/member.php?u=201608"]Drakehawke[/URL].
That's impossible.
Jesus I made like five ways to restrict tools and people still don't think it's enough. :(
I will never be finished.
[QUOTE=CharadesV2;22138599]Has this been tested using the linux binaries? I'm trying to use DarkRP on my server and at first it kept spamming me about cl_init, so I figured I wasn't downloading from the server. I went ahead and downloaded DarkRP and stuck it in my gamemodes folder to see if that was the issue, that got the hud working. However now there are a few problems with it, none of the F menu keys work and it won't display names.[/QUOTE]
I had to change all my files and folders to lowercase then edit the init.lua file for all the addcsluafile things.
Creating symbolic links would have been much easier though (I didn't think of that till after I had done it :p)
It's some problem with scriptenforcer or something.
hi, i would like to make an entity who spawn shipments, but i don't know how set the shipment values like the anmount and the weapon name, i try this:[lua]function spawncrate(ply)
local ship = ents.Create("spawned_shipment")
ship:SetPos(Vector(0, 0, 100))
ship:SetContents("weapon_p228", "12", "20")
ship:Spawn()
end
concommand.Add("spawncrate", spawncrate)[/lua]
but it dosent work, it spawn a shipment with nothing inside, so, is there a function to make this?
thanks in advance
Sorry, you need to Log In to post a reply to this thread.