Jump to content

مساعدة


Recommended Posts

إيش الغلط في الكود؟

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
addEventHandler("onPlayerChat",root,
  function()
    chatteraccount = getPlayerAccount ( source )
    if isGuestAccount ( chatteraccount ) then
      cancelEvent()
        outputChatBox ( "Please register to use this function!", source )
    end
end
);

 

Edited by #BrosS
Link to comment
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)

 

قفل اي مود تاجات

أو مود الفري روم

  • Thanks 1
  • Confused 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...