Ismaeel_finer Posted November 24, 2016 Share Posted November 24, 2016 السلام عليكم بدي اعمل مود متلا لما اي حد مش مسجل ويبعت رسالة ايقوله لازم تسجل ورسالة ماتوصل للجميع مساعدتكم^_^ Link to comment
Kara Posted November 24, 2016 Share Posted November 24, 2016 (edited) onPlayerChat isGuestAccount cancelEvent outputChatBox Edited November 24, 2016 by Kara 1 Link to comment
Ismaeel_finer Posted November 24, 2016 Author Share Posted November 24, 2016 54 minutes ago, Kara said: onPlayerChat isGuestAccount cancelEvent outputChatBox منور حوبي Link to comment
F_F Posted November 25, 2016 Share Posted November 25, 2016 (edited) not test addEventHandler("onPlayerChat", root, function a ( ChatClose ) p = getPlayerAccount ( ChatClose ) if isGuestAccount ( p ) then else cancelEvent ( ) outputChatBox("you not register please register to chat !", source, 255, 0, 0) end end ); Edited November 25, 2016 by F_F Link to comment
' A F . Posted November 25, 2016 Share Posted November 25, 2016 قبل لاتسوي اي كود ومو متأكد منه راجع الويكي , لانك فوق مسوي خرابيط . Link to comment
Kara Posted November 25, 2016 Share Posted November 25, 2016 @F_F اضن تمت افادته وبعدين كودك غير صحيح Link to comment
Jw8. Posted November 25, 2016 Share Posted November 25, 2016 addEventHandler("onPlayerChat", root, function callAdmin ( playerSource ) -- get the account of the user trying to use this function first sourceAccount = getPlayerAccount ( playerSource ) -- if they're a guest if isGuestAccount ( sourceAccount ) then -- tell them to register outputConsole ( "the Player IS Guest", playerSource ) else -- your code to call the admin would go here end end -- attach the function 'callAdmin' as a handler to the command "call_admin" addCommandHandler ( "call_admin", callAdmin ) bool cancelEvent ( [ bool cancel = true, string reason = "" ] ) outputChatBox ( "#FF0000Admin #00FF00Call", getRootElement(), 255, 255, 255, true ) جرب -- Link to comment
|=>Z,3(^e^)_M_<=|[2] Posted December 5, 2016 Share Posted December 5, 2016 On ٢٥/١١/٢٠١٦ at 3:09 PM, DmAr511 said: addEventHandler("onPlayerChat", root,function callAdmin ( playerSource ) -- get the account of the user trying to use this function first sourceAccount = getPlayerAccount ( playerSource ) -- if they're a guest if isGuestAccount ( sourceAccount ) then -- tell them to register outputConsole ( "the Player IS Guest", playerSource ) else -- your code to call the admin would go here endend-- attach the function 'callAdmin' as a handler to the command "call_admin"addCommandHandler ( "call_admin", callAdmin )bool cancelEvent ( [ bool cancel = true, string reason = "" ] ) outputChatBox ( "#FF0000Admin #00FF00Call", getRootElement(), 255, 255, 255, true ) جرب -- ايه لازمة ال callAdmin 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