jesserocks3357 / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

Donator jobs #647

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My suggestion is:
I tryed to follow the links i got told by admins on here to add donator jobs 
for assmod based ranks, but all it does is breaks f4 menu and doesnt work, so 
is there someone who can help me to make donator jobs for assmod ranks?

Why this should be in DarkRP by default and not a third party addon:

Note: If this is a scoreboard suggestion, post in issue 276

Original issue reported on code.google.com by deluxser...@live.dk on 24 Aug 2011 at 3:46

GoogleCodeExporter commented 9 years ago
Don't use ASSMod, it's extremely outdated and very incompatible, use ULX, 
FAdmin or Evolve. There is documented instructions on using donator jobs with 
those admin mods.

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 4:08

GoogleCodeExporter commented 9 years ago
Im using assmod, a custom version by myself, and its setup with auto donator 
system from website, so i need to use assmod, so can anyone help?

Original comment by deluxser...@live.dk on 24 Aug 2011 at 5:07

GoogleCodeExporter commented 9 years ago
Find however you check what rank a player is, and use that as part of the 
condition function in the team set-up.

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 5:31

GoogleCodeExporter commented 9 years ago
This should be the function - function(ply) return ply:IsDonator() or 
ply:IsAdmin() end
in shared.lua ,  but its not working peoples can still join job when their not 
donator..
Here is job. 

TEAM_SGUN = AddExtraTeam("Speciel Gun Dealer", Color(100, 0, 0, 255), 
"models/player/eli.mdl", [[A gun dealer is the only person who can sell guns to 
other 
people. 
However, make sure you aren't caught selling guns that are illegal to 
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols

Donator Job!]], {"weapon_fists"}, "sgundealer", 3, 45, 0, false, false, 
function(ply) return ply:IsDonator() or ply:IsAdmin() end)

Original comment by deluxser...@live.dk on 24 Aug 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Try this:

TEAM_SGUN = AddExtraTeam("Speciel Gun Dealer", Color(100, 0, 0, 255), 
"models/player/eli.mdl", [[A gun dealer is the only person who can sell guns to 
other 
people. 
However, make sure you aren't caught selling guns that are illegal to 
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols

Donator Job!]], {"weapon_fists"}, "sgundealer", 3, 45, 0, false, false, nil, 
function(ply) return ply:IsDonator() or ply:IsAdmin() end)

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 5:48

GoogleCodeExporter commented 9 years ago
Still not working, you can still go job when not donator and just normal player.

Original comment by deluxser...@live.dk on 24 Aug 2011 at 6:03

GoogleCodeExporter commented 9 years ago
I even tryed with ULX and thats not working too.

Original comment by deluxser...@live.dk on 24 Aug 2011 at 6:45

GoogleCodeExporter commented 9 years ago
I tried with this:

TEAM_SGUN = AddExtraTeam("Speciel Gun Dealer", Color(100, 0, 0, 255), 
"models/player/eli.mdl", [[A gun dealer is the only person who can sell guns to 
other 
people. 
However, make sure you aren't caught selling guns that are illegal to 
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols

Donator Job!]], {"weapon_fists"}, "sgundealer", 3, 45, 0, false, false, nil, 
function(ply) return ply:IsAdmin() end)

And it worked fine, if I removed my admin it wouldn't let me become the job. 
It's a problem with your IsDonator function.

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 7:35

GoogleCodeExporter commented 9 years ago
Do i need to add anything else than this function to job?
Because its still not working :S

Original comment by deluxser...@live.dk on 24 Aug 2011 at 7:43

GoogleCodeExporter commented 9 years ago
Did you add a nil before the function?

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 7:46

GoogleCodeExporter commented 9 years ago
I added the latest one you wrote..

TEAM_SGUN = AddExtraTeam("Speciel Gun Dealer", Color(100, 0, 0, 255), 
"models/player/eli.mdl", [[A gun dealer is the only person who can sell guns to 
other 
people. 
However, make sure you aren't caught selling guns that are illegal to 
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols

Donator Job!]], {"weapon_fists"}, "sgundealer", 3, 45, 0, false, false, nil, 
function(ply) return ply:IsAdmin() end)

Original comment by deluxser...@live.dk on 24 Aug 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Now remove your admin, and try and become that job. Does it block you?

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 8:09

GoogleCodeExporter commented 9 years ago
Nope it doesnt block me.

Original comment by deluxser...@live.dk on 24 Aug 2011 at 8:22

GoogleCodeExporter commented 9 years ago
It blocks me just fine, try this:

TEAM_SGUN = AddExtraTeam("Speciel Gun Dealer", Color(100, 0, 0, 255), 
"models/player/eli.mdl", [[A gun dealer is the only person who can sell guns to 
other 
people. 
However, make sure you aren't caught selling guns that are illegal to 
the public.
/Buyshipment <name> to Buy a  weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols

Donator Job!]], {"weapon_fists"}, "sgundealer", 3, 45, 0, false, false, nil, 
function(ply) return false end)

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 8:39

GoogleCodeExporter commented 9 years ago
Peoples with normal status can still go job.

Original comment by deluxser...@live.dk on 24 Aug 2011 at 9:13

GoogleCodeExporter commented 9 years ago
So what can the issue be then? i tryed with assmod and the ULX instruction for 
ULX, none worked.

Original comment by deluxser...@live.dk on 24 Aug 2011 at 9:25

GoogleCodeExporter commented 9 years ago
Put your player.lua and MakeThings.lua on pastebin and post the link.

Original comment by drakehawke@gmail.com on 24 Aug 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Are you /sure/ you updated to the latest revision of DarkRP?

If you don't update, this method will fail silently.

Original comment by fpeijnen...@gmail.com on 25 Aug 2011 at 8:59

GoogleCodeExporter commented 9 years ago
I have latest svn version.

Here is links:

Player.lua - http://pastebin.com/Uvjz8wHH
MakeThings.lua - http://pastebin.com/b55c1RKP

Original comment by deluxser...@live.dk on 27 Aug 2011 at 8:48

GoogleCodeExporter commented 9 years ago
I can't see any of the donator jobs code in either of those files. They aren't 
on the latest SVN.

Original comment by drakehawke@gmail.com on 27 Aug 2011 at 12:33

GoogleCodeExporter commented 9 years ago
I just updated SVN again, and it says its latest version.

Original comment by deluxser...@live.dk on 27 Aug 2011 at 2:24

GoogleCodeExporter commented 9 years ago
Its says i got latest..

Original comment by deluxser...@live.dk on 27 Aug 2011 at 3:31

GoogleCodeExporter commented 9 years ago
Nevermind then, i just finished my own little system in darkrp that have more 
features than just donator jobs. Thanks for the help anyways.

Original comment by deluxser...@live.dk on 27 Aug 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Well you're obviously not on the latest SVN because your files don't match the 
SVN ones.

Original comment by drakehawke@gmail.com on 27 Aug 2011 at 5:09

GoogleCodeExporter commented 9 years ago
I cant make a supporter job(like donator) i can only make the admin job, Plz 
help

Original comment by manofwar...@gmail.com on 16 Dec 2011 at 8:46