Jump to content

X[طلب]X


Recommended Posts

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 by F_F
Link to comment
  • 2 weeks later...
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

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...