Just a quick, out of my mind
meta:IsCP
function.. Make it
And then add
if ply:IsCP then
at it.. I don't know if it works but it's just a random shot.
How long do you think it'll be till the new hud,scoreboard,and admin system (fadmin is released). FPtje
[QUOTE=Freze;21389436]Just a quick, out of my mind
meta:IsCP
function.. Make it
And then add
if ply:IsCP then
at it.. I don't know if it works but it's just a random shot.[/QUOTE]
You can use ply:Team() and do something like,
[lua]if ply:Team() == TEAM_POLICE then[/lua]
Hey guys, I have a quick question, its a little newbie but I just started a GMod RP server and its highly requested.
Im looking for a script (or whatever it is classified as) for a Hitman job that works somewhat like this:
- Player types in "/hit PlayerName 300" (300 can be swapped for whatever the person wants to pay)
- Hitman gets a popup or some sort of notification that Player wants him to kill PlayerName for 300.
- Hitman presses Yes or No
- Hitman Kills PlayerName
- Player loses 300 and Hitman gains 300.
I want this because a hitman will most likely not get paid for his services unless it is automatic. Im trying to make this as minge proof as possible. Ive seen this on a few other servers and I was wondering if anyone could steer me towards a script like this.
Also, I asked in the Lua New question thread and they couldnt help me so I figured I would attempt here.
Thanks in advance if you can help.
[QUOTE=bfking;21395632]How long do you think it'll be till the new hud,scoreboard,and admin system (fadmin is released). FPtje[/QUOTE]
It will take a while, believe me.
Anyway, what icon should I use for godmode? I can't figure it out.
I'm not going to make an icon of an actual god, that would make no sense.
[QUOTE=FPtje;21400084]It will take a while, believe me.
Anyway, what icon should I use for godmode? I can't figure it out.
I'm not going to make an icon of an actual god, that would make no sense.[/QUOTE]
Clouds and sunlight. Or a giant hand. Sunrise?
Thats godly. :\
Use the carcinogenic symbol, I like it.
[QUOTE=HoboInArmy;21400265]Clouds and sunlight. Or a giant hand. Sunrise?
Thats godly. :\[/QUOTE]
A sun enveloped in clouds it shalt be, thanks.
[QUOTE=FPtje;21401938]A sun enveloped in clouds it shalt be, thanks.[/QUOTE]
No problem, could you return the favor and attempt to answer my question that was right above yours?
It's not a quick question it's a complete Lua script.
You will need to use
[lua]AddChatCommand(strChatCommand, funcCallBack)[/lua]
[lua]ques:Create(question, quesid, ent, delay, callback, fromPly, toPly)[/lua]
[lua]DB.PayPlayer(Fromply, ToPly, amount)[/lua]
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerDeath]Gamemode.PlayerDeath [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[QUOTE=FPtje;21420225]It's not a quick question it's a complete Lua script.
You will need to use
AddChatCommand(strChatCommand, funcCallBack)ques:Create(question, quesid, ent, delay, callback, fromPly, toPly)DB.PayPlayer(Fromply, ToPly, amount)[B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerDeath"]Gamemode.PlayerDeath [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B][/QUOTE]
Ok, I can edit that. But do I make a new lua file? I have no idea how to go about this.
-Edit-
Scratch that, I kind of understand.
I made a new .lua file under moduals and have those 3 lines in the file. Are those 3 all I need?
This is probably extremely wrong but I figured I see if this is anywhere near right.
[CODE]AddChatCommand(/hit ply int, funcCallBack)
function playerDies( victim, weapon, killer )
if ply:Team() == TEAM_HITMAN then
ques:Create(Do you want to hit (ply)?, quesid, ent, delay, callback, fromPly, toPly)
end
end
DB.PayPlayer(Fromply, ToPly, amount) [/CODE]
no these are the functions you need. but putting those functions in a file won't do anything, you really need Lua knowledge.
Is their a way to change, the ammo you purhcase in the f4 menu, I have sweps that don't use that type of ammo,
Also for some reason food mod isn't working for my server, I used the command but it doesn't recongize it
[QUOTE=erie1555;21430125]Is their a way to change, the ammo you purhcase in the f4 menu, I have sweps that don't use that type of ammo,
Also for some reason food mod isn't working for my server, I used the command but it doesn't recongize it[/QUOTE]
You dont change the gamemodes ammo. You change the SWEPs. Go into the weapons shared.lua file and find the line:
SWEP.Primary.Ammo = "357" (Taken from CSS Realistic Weapon Deagle)
Change it to: SWEP.Primary.Ammo = "pistol"
or whatever type of gun it is.
-snip
News about FAdmin:
[url]http://www.facepunch.com/showpost.php?p=21450621&postcount=1381[/url]
Cool I'm playing LightRP on a server. People still play it apparently!
[QUOTE=FPtje;21461186]News about FAdmin:
[url]http://www.facepunch.com/showpost.php?p=21450621&postcount=1381[/url]
Cool I'm playing LightRP on a server. People still play it apparently![/QUOTE]
Yes, I know you don't like motds.
But you can pretty please make a second option for those who want a motd that pops up when you join the server- like ulx- instead of a entities type of thing?
Both options= both sides get what they want and so they don't have to use two admin mods instead.
Erm, how do you make it so that a certain class can request a warrant, wanted, and talk in the same radio?
[QUOTE=erie1555;21473175]Erm, how do you make it so that a certain class can request a warrant, wanted, and talk in the same radio?[/QUOTE]
In main.lua, find where each of these features are set up (tip for finding them: ctrl+f and search for the chat command, the code for it should be just above it).
There should be an if function which checks if the players team is CP, CHIEF or MAYOR, simply add your team into this list (use the TEAM_NAME you set in shared.lua).
Have a go at that, if your still stuck I'll post a more detailed explanation of how to do it tomorrow.
[QUOTE=White Elf;21470966]Yes, I know you don't like motds.
But you can pretty please make a second option for those who want a motd that pops up when you join the server- like ulx- instead of a entities type of thing?
Both options= both sides get what they want and so they don't have to use two admin mods instead.[/QUOTE]
Press left mouse on the screen while the MOTD is viewing and you will see it in full screen. That's as bad as it gets. I simply refuse to make an MOTD that pops up at spawn:
- It delays joining a server a lot
- It being created while you're still spawning causes terrible lag problems. It takes like 30 seconds of sound spam before you see anything
- No one reads it because every server has the same MOTD system and 80% of the servers have the standard ULX or ASSmod MOTD (and they don't know how to change that)
- No one reads it because they're fed up with the lag
- Some people (like me) even block the MOTD so they can't be bothered with it
- The quality of the server decreases if you have to look at a million rules before you can start to play
The MOTD I made doesn't have these problem because
- It doesn't delay joining a server
- It's not created while you're spawning so it doesn't lag you
- People will read it because it's interesting. A prop in the map with news/rules is far more interesting than something that pops up on spawn
- People will also read it because they aren't forced to read it. When players are forced to do something they're like "fuck you". When they're not they are more likely to read it
- People won't need to block the MOTD. If they don't want to see it, they ignore the prop.
I think I made my point.
The FAdmin MOTD system sounds great, only problem I could possibly see happening is 10 year old kids complaining they didn't know a rule when they get kicked for breaking it or etc.
Not really your problem though (we don't really need to keep the 10 year old kids (the mingey ones I mean) do we?) and the lag it saves is worth it anyway.
For all those who want the pop-up MOTD, you can get MOTD only addons from garrysmod.org anyway that are simple and work just as well.
[QUOTE=FPtje;21480276]Press left mouse on the screen while the MOTD is viewing and you will see it in full screen. That's as bad as it gets. I simply refuse to make an MOTD that pops up at spawn:
- It delays joining a server a lot
- It being created while you're still spawning causes terrible lag problems. It takes like 30 seconds of sound spam before you see anything
- No one reads it because every server has the same MOTD system and 80% of the servers have the standard ULX or ASSmod MOTD (and they don't know how to change that)
- No one reads it because they're fed up with the lag
- Some people (like me) even block the MOTD so they can't be bothered with it
- The quality of the server decreases if you have to look at a million rules before you can start to play
The MOTD I made doesn't have these problem because
- It doesn't delay joining a server
- It's not created while you're spawning so it doesn't lag you
- People will read it because it's interesting. A prop in the map with news/rules is far more interesting than something that pops up on spawn
- People will also read it because they aren't forced to read it. When players are forced to do something they're like "fuck you". When they're not they are more likely to read it
- People won't need to block the MOTD. If they don't want to see it, they ignore the prop.
I think I made my point.[/QUOTE]
We'll try it, but we're probably gonna end up using a separate MOTD addon.
Also, what happens if some annoying player decides to put a prop over the MOTD?
MOTD's don't lag, plus I bet you cannot block the motd I have on my server. Its part of the main menu.
[QUOTE=Drakehawke;21484835]We'll try it, but we're probably gonna end up using a separate MOTD addon.
Also, what happens if some annoying player decides to put a prop over the MOTD?[/QUOTE]
Then you have a poorly maintained server.
I like this.
[QUOTE=roleplay word;21485313]MOTD's don't lag, plus I bet you cannot block the motd I have on my server. Its part of the main menu.[/QUOTE]
It is known that any HTML element lags up the game for at least a few seconds, after being opened the HTML element causes an FPS reduction.
I don't use html in my motd <3
[QUOTE=roleplay word;21489773]I don't use html in my motd <3[/QUOTE]
explain now. >:)
If it isn't HTML then it's probably Derma :/.
So he added his motd to darkrps f4 menu? Or something like that?
[QUOTE=roleplay word;21489773]I don't use html in my motd <3[/QUOTE]
I bet I can. Even if it's part of the main menu. I prefer chat commands compared to menu's.
Sorry, you need to Log In to post a reply to this thread.