Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- check every second
- -- if living player has enabled lighting then make him spectator
- -- sample by useigor
- addhook("second","secunda")
- function secunda()
- for _,id in pairs(player(0,"tableliving")) do
- reqcld(id,3)
- end
- end
- addhook("clientdata","dataclienta")
- function dataclienta(id,mode,d1,d2)
- if mode==3 then
- if d1==1 then
- parse("makespec "..id)
- msg2(id,player(id,"name")..", please, disable your lighting!")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement