Snakegold Posted May 6, 2019 Share Posted May 6, 2019 إيش الغلط في الكود؟ function callAdmin ( chatter ) chatteraccount = getPlayerAccount ( chatter ) if isGuestAccount ( chatteraccount ) then outputChatBox ( "Please register to use this function!", chatter ) else end end addEventHandler("onPlayerChat",root,callAdmin) Link to comment
#BrosS Posted May 6, 2019 Share Posted May 6, 2019 (edited) addEventHandler("onPlayerChat",root, function() chatteraccount = getPlayerAccount ( source ) if isGuestAccount ( chatteraccount ) then cancelEvent() outputChatBox ( "Please register to use this function!", source ) end end ); Edited May 6, 2019 by #BrosS Link to comment
Snakegold Posted May 6, 2019 Author Share Posted May 6, 2019 يجيني النص بس اقدر اكتب في الشات Link to comment
+Source|> Posted May 10, 2019 Share Posted May 10, 2019 On 06/05/2019 at 14:30, Snakegold said: إيش الغلط في الكود؟ function callAdmin ( chatter ) chatteraccount = getPlayerAccount ( chatter ) if isGuestAccount ( chatteraccount ) then outputChatBox ( "Please register to use this function!", chatter ) else end end addEventHandler("onPlayerChat",root,callAdmin) قفل اي مود تاجات أو مود الفري روم 1 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now