Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Zegarek
- local Clock = false
- function giveclock()
- if Clock == false then
- Clock = true
- outputChatBox ( "Od teraz masz zegarek!", getRootElement(), 100, 100, 100, true )
- else
- outputChatBox ( "Masz juz zegarek!", getRootElement(), 100, 100, 100, true )
- end
- end
- addCommandHandler ( "dzegarek", giveclock )
- function delclock()
- if Clock == true then
- Clock = false
- outputChatBox ( "Juz nie masz zegarka!", getRootElement(), 100, 100, 100, true )
- else
- outputChatBox ( "Nie masz zegarka!", getRootElement(), 100, 100, 100, true )
- end
- end
- addCommandHandler ( "uzegarek", delclock )
- function clock()
- if Clock == true then
- triggerClientEvent(zegarek,"Clock",zegarek)
- else
- outputChatBox ( "Nie masz zegarka!", getRootElement(), 100, 100, 100, true )
- end
- end
- addCommandHandler ( "zegarek", Clock )
Add Comment
Please, Sign In to add comment