• Help with vrondakis Level System?
    5 replies, posted
I am looking for someone who can help me to get this working. 1st I was wondering if i would be able to set up the level system to work with NG ii printers, second i was wondering if someone can help me add police getting XP when arresting someone, third cops get xp when taking the printer away. Thanks to anyone that can help me solve this. The level system "http://coderhire.com/scripts/view/687" and the NG ii printers "http://coderhire.com/scripts/view/279" both are excellent scripts and recommend the to anyone!
Shouldn't you ask the script creator for help?
I don't do custom things for people for free any more because ~40 people asking me to make them something custom is really daunting, especially since half of the people don't even say thanks.
Well the owner of the script has helped me with the printers all i need is help adding xp when a cop arrests someone and when a cop destroys someone else's printer they get XP.
I am the script owner? Anyway, I couldn't help myself. Here's your arresting XP code: [lua] local xpamount = 100 // Change this to another number.. or not. hook.Add('playerArrested', 'plyhasbnarst123', function(criminal, time, cop) if IsValid(cop) then cop:addXP(xpamount) DarkRP.notify(cop,0,4,'You got '..xpamount..' for arresting this player.') end end) [/lua] Add it to the bottom of sh_core.lua
Thanks so much man really appreciate it!
Sorry, you need to Log In to post a reply to this thread.