Advertisement
Deadman69330

Untitled

Oct 9th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. include("sh_roll.lua")
  2.  
  3. local conf = ROLLCONF
  4.  
  5. local function Roll(ply, args)
  6. local DoSay = function()
  7. if GAMEMODE.Config.alltalk then
  8. for _, target in pairs(player.GetAll()) do
  9. DarkRP.talkToPerson(target, team.GetColor(ply:Team()), ply:Nick().. conf.tchatmsg ..math.random(1,100).."." )
  10. end
  11. else
  12. DarkRP.talkToRange(ply, ply:Nick().. conf.tchatmsg ..math.random(1,100).."." )
  13. end
  14. end
  15. return args, DoSay
  16. end
  17. DarkRP.defineChatCommand(conf.cmd, Roll, 1.5)
  18.  
  19. DarkRP.declareChatCommand{
  20. command = conf.cmd,
  21. description = "write an roll",
  22. delay = 1.5
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement