I have suggestions: Make it so the Arrest baton doesn't arrest NPCs and make it so admins can disable buy health (<- not sure if its already done).
I'll tell ya what, do the following to remove health buying capabilities.
1.) Goto gamemode/showteamtabs.lua, delete lines 286-289.
2.) Goto gamemode/main.lua, delete lines 1179-1203.
That should both remove the f4 menu derma for buy health, and disable the chat command.
Edit:
And to remove the ability to send npcs to jail (which I thought was fun)
-Goto entities/weapons/arrest_stick/shared.lua, delete lines 83-92.
P.s.
-Shipment makers/team makers are for script kiddies.
[QUOTE=connorclockwise;19905580]
-Shipment makers/team makers are for script kiddies.
[/QUOTE]
Not true, script kiddies can script.
[QUOTE=Dwatring;19775035]Isn't that what an update means?[/QUOTE]
Not if you play a game from EA...
[QUOTE=Vinze;19912698]Not if you play a game from EA...[/QUOTE]
So very true.
[QUOTE=NewBee;19912546]Not true, script kiddies can script.[/QUOTE]
Obviously butthurt script kiddie is butthurt.
[QUOTE=connorclockwise;19914495]Obviously butthurt script kiddie is butthurt.[/QUOTE]
Surely if 'script kiddies' couldn't script, then they'd be just... 'kiddies'?
You are all wrong
[quote=wikipedia]In hacker culture, a script kiddie, or skiddie, occasionally script bunny, skid, script kitty, script-running juvenile (SRJ), or similar, is a derogatory term used to describe those who use scripts or programs developed by others to attack computer systems and networks. It is generally assumed that script kiddies are juveniles who lack the ability to write sophisticated hacking programs or exploits on their own, and that their objective is to try to impress their friends or gain credit in computer-enthusiast communities.[/quote]
[QUOTE=connorclockwise;19914495]Obviously butthurt script kiddie is butthurt.[/QUOTE]
And you are a '1337 Lua scripter'? It doesn't take much to find a few lines in DarkRP related to an action and add/remove to them.
DarkRP gained its popularity mainly due to its simplicity. In DarkRP, you can make large changes to gameplay by adding or removing a few easy lines of code. Most of the people that want to run a DarkRP server aren't all going to be coders, so I made that classmaker to help further simplify the process of making classes. Sure the classmaker isn't all that complex itself, being only around 500 lines of code including HTML, but it helps keep team making questions out of the thread. So stop making yourself feel better by putting down other people. You aren't making yourself look cool, you are only making an ass out of yourself.
Justice has been served. And back on topic, this is pretty exciting. What are the significant changes, so I don't have to scroll through the changelog for lesser changes?
Is there a way to got back the physics of money ?
because it's really hard to make an automatic gun dispenser without it
ps: sorry for my bad english
Hmmm... I have the file "addshipment.lua" in my gamemodes folder, but the custom shipments still don't work. Any way to fix this?
P.S. This is some sample code:
[QUOTE]
AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_real_cs_m249", 6000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_real_cs_galil", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
//AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_real_cs_ak47", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_real_cs_m4a1", 3900, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_real_cs_famas", 3900, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_real_cs_awp", 5000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_real_cs_scout", 4500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})[/QUOTE]
Your ak47 is commented out, but that shouldn't break the code
And another person takes the shipment and don't read the rest of the guide
thanks a lot for Updating the svn, the money have a good physics now
Next SVN update is going to have:
- Less NWVars, I removed ALL NWvars related to doors just to be able to:
- add group owning doors (previously cops and mayor only, now you can make those groups yourself)
Example of how it will PROBABLY work:
Also, these are the ones that will be in there by default
[lua]AddDoorGroup("cops and mayor", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("gundealer", TEAM_GUN)[/lua]
so name, team, team, team etc.
You can have 1 team, you can have 10 teams.
^ Woot!
[QUOTE=Infinity1995;19930633]And another person takes the shipment and don't read the rest of the guide[/QUOTE]
Ummm.... That is exactly how it is in the guide.
Would be really awesome if there was a way to restrict the maximum number of shipments each player could purchase.
@jimbodude, DarkRP is very customizable, why dont you make it yourself :/
Cornelisjuh, not everyone can script Lua.
[highlight]Attention: I uploaded the door groups to the SVN. It needs testing! there might still be bugs, I changed a lot[/highlight]
I don't expect much bugs, but you never know.
[highlight]shared.lua has changed. If you update DarkRP and put back your backup of shared.lua with your custom teams it will probably muck up. [/highlight]
To fix it, add these two lines at the BOTTOM of shared.lua:
[lua]AddDoorGroup("cops and mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("gundealer only", TEAM_GUN)[/lua]
[QUOTE=FPtje;19936358]Next SVN update is going to have:
- Less NWVars, I removed ALL NWvars related to doors just to be able to:
- add group owning doors (previously cops and mayor only, now you can make those groups yourself)
Example of how it will PROBABLY work:
Also, these are the ones that will be in there by default
[lua]AddDoorGroup("cops and mayor", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("gundealer", TEAM_GUN)[/lua]
so name, team, team, team etc.
You can have 1 team, you can have 10 teams.[/QUOTE]
Thanks for using the idea! Can't wait to see it done!
[QUOTE=soccercrazy1;19937293]Ummm.... That is exactly how it is in the guide.[/QUOTE]
I think he is talking about the need of the TEAM_ADMIN class. If you are putting in an undefined team into the shipments, it will most likely result in an error.
Okay, installing new updates and configuring shared.lua now.
Will return with any errors soon.
[QUOTE=FPtje;19939215]Cornelisjuh, not everyone can script Lua.
[highlight]Attention: I uploaded the door groups to the SVN. It needs testing! there might still be bugs, I changed a lot[/highlight]
I don't expect much bugs, but you never know.
[highlight]shared.lua has changed. If you update DarkRP and put back your backup of shared.lua with your custom teams it will probably muck up. [/highlight]
To fix it, add these two lines at the BOTTOM of shared.lua:
[lua]AddDoorGroup("cops and mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("gundealer only", TEAM_GUN)[/lua][/QUOTE]
I know, but changing some things in lua isnt that hard. For example, replace "mayor" with "citizen". Making soemthing from the scratch IS hard :P.
[highlight]ANOTHER[/highlight] big update!
[REMOVE] NWVars in doors and custom entities (shipments, druglabs etc.)
I now use DTVars instead.
Even less buffer overflows :D
The only entity with NWVars in DarkRP is the player... and the player has quite a few NWVars... That will be the next thing to fix.
I'm going to bed now, good night.
Night bro.
lol good night :D
ERROR: GAMEMODE:'HUDPaint' Failed: DarkRP/gamemode/cl_init.lua:134: attempt to concatenate local 'contents' (a nil value)
HUGE ERROR!! occurs when spawning a shipment.
No shipments work since newest darkrp update (svn). The box spawns, but when used nothing comes out.
The error given is:
Couldn't addvar contents - type String is invalid!
Please help, thanks.
Sorry, you need to Log In to post a reply to this thread.