Guest User

Untitled

a guest
Jul 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. function advertising ( thePlayer, command, amount )
  2.     local money = getPlayerMoney(thePlayer)
  3.         if (money > 500) then
  4.         takePlayerMoney ( thePlayer, tonumber(500) )
  5.         outputChatBox("(AD) {...}")
  6.     else
  7.         outputChatBox("You don't have enough money to make an advertisement", thePlayer)
  8.     end
  9. end
  10. addCommandHandler ( "advert", advertising )
Add Comment
Please, Sign In to add comment