Guest User

Untitled

a guest
Jan 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local blip
  2.  
  3. addEventHandler("onPlayerJoin",root,
  4. function()
  5.     local randomColor=math.random(1,255)
  6.     blip=createBlipAttachedTo(source,0,2,randomColor,randomColor,randomColor,255)
  7. end)
  8.  
  9. addEventHandler("onPlayerQuit",root,
  10. function()
  11.     if(isElement(blip))then destroyElement(blip) end
  12. end)
Add Comment
Please, Sign In to add comment