SHARE
TWEET

Untitled

a guest Jun 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local per = false
  2.  
  3. function main()
  4.     if not isSampfuncsLoaded() or not isSampLoaded() then return end
  5.     sampRegisterChatCommand('give', give)
  6.     while true do
  7.       wait(0)
  8.     end
  9. end
  10.  
  11. function give(arg)
  12.     per = not per
  13.     local money = getPlayerMoney(PLAYER_PED)
  14.     local res, ped = sampGetCharHandleBySampPlayerId(arg)
  15.     local x, y, z = getCharCoordinates(PLAYER_PED)
  16.     local x1, y1, z1 = getCharCoordinates(ped)
  17.     if money >= 5000 and res then
  18.         while getDistanceBetweenCoords3d(x, y, z, x1, y1, z1) > 2 do wait(100) end
  19.         sampSendChat("/pay"..arg.."5000")
  20.     end
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top