Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function main()
  2. if not isSampfuncsLoaded() or not isSampLoaded() then return end
  3. sampRegisterChatCommand('give', give)
  4. while true do
  5. wait(-1)
  6. end
  7. end
  8.  
  9. function give(arg)
  10. local money = getPlayerMoney(PLAYER_PED)
  11. local res, ped = sampGetCharHandleBySampPlayerId(arg)
  12. local x, y, z = getCharCoordinates(PLAYER_PED)
  13. local x1, y1, z1 = getCharCoordinates(ped)
  14. if money >= 1 and res then
  15. while getDistanceBetweenCoords3d(x, y, z, x1, y1, z1) <= 4 do wait(100) end
  16. sampSendChat("/pay"..arg.."5000")
  17. end
  18. end
  19. -- Кто читает помогите пжпжпжпж
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement