weeztor / darkrp

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

Gundealer still has all custom shipments (SVN522 Fix) #224

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?
Gundealer can still buy all the custom shipments (This regards the fix made
for 522)

What steps will reproduce the problem?
Add custom shipments

Do you have any errors? serverside or clientside? if you do, which ones?
No

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
SVN 524

Please provide any additional information below.
Server: server2.thed3vine.net:27015

Original issue reported on code.google.com by tisulliv...@woh.rr.com on 17 Feb 2010 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
I was able to fix this myself. by changing line 916 in main .lua to

if (RestrictBuyPistol == 0) then
    canbuy = true
elseif (RestrictBuyPistol == 1 and !v.allowed[1]) then
    canbuy = true
elseif (RestrictBuyPistol == 1 and table.HasValue(v.allowed, ply:Team())) then
    canbuy = true
end

Still need to make them not show up in entities menu though.

Original comment by tisulliv...@woh.rr.com on 17 Feb 2010 at 4:27

GoogleCodeExporter commented 9 years ago
Fixed in 523. Thanks a lot.

Original comment by fpeijnen...@gmail.com on 17 Feb 2010 at 8:58