Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function advertising ( thePlayer, command, amount )
- local money = getPlayerMoney(thePlayer)
- if (money > 500) then
- takePlayerMoney ( thePlayer, tonumber(500) )
- outputChatBox("(AD) {...}")
- else
- outputChatBox("You don't have enough money to make an advertisement", thePlayer)
- end
- end
- addCommandHandler ( "advert", advertising )
Add Comment
Please, Sign In to add comment