Guest User

Untitled

a guest
Jul 23rd, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. -- Zegarek
  2. local Clock = false
  3.  
  4. function giveclock()
  5.     if Clock == false then
  6.         Clock = true
  7.         outputChatBox ( "Od teraz masz zegarek!", getRootElement(), 100, 100, 100, true )
  8.     else
  9.         outputChatBox ( "Masz juz zegarek!", getRootElement(), 100, 100, 100, true )
  10.     end
  11. end
  12. addCommandHandler ( "dzegarek", giveclock )
  13. function delclock()
  14.     if Clock == true then
  15.         Clock = false
  16.         outputChatBox ( "Juz nie masz zegarka!", getRootElement(), 100, 100, 100, true )
  17.     else
  18.         outputChatBox ( "Nie masz zegarka!", getRootElement(), 100, 100, 100, true )
  19.     end    
  20. end
  21. addCommandHandler ( "uzegarek", delclock )
  22.  
  23. function clock()
  24.     if Clock == true then
  25.         outputChatBox ( "TEstN!", getRootElement(), 100, 100, 100, true )
  26.         triggerClientEvent(zegarek,"Clock",zegarek)
  27.     else
  28.         outputChatBox ( "Nie masz zegarka!", getRootElement(), 100, 100, 100, true )   
  29.     end
  30. end
  31. addCommandHandler ( "zegarek", Clock )
Add Comment
Please, Sign In to add comment