Well, I've started to learn scripting, so I started with some basic script that I'm sure for 100% that it's not correct.
It's like an event, when someone using the command : /givemoney , it picks a random player and gives him 1k$. (1,000)
I still don't know how to make this command be able for staff team only. (If you know how, reply please)
But If you recognize the error, please reply here, thank you.
function giveMoney (player, command)
giveMoneyPlayer (player, "1000")
local luckyBugger = getRandomPlayer()
local x, y, z = getElementPosition ( luckyBugger )
outputChatBox ( "You've recieved 1000", luckyBugger )
end
addCommandHandler ("moneyevent", "giveMoney")