Jump to content

طلب مساعدة في شيئان


Recommended Posts

  
'onPlayerChat' 
'onPlayerCommand' 
isGuestAccount 
getPlayerAccount 
cancelEvent 
  

مايحتاج الحدث حق الكوماند

الا يحتاج

يقولك كيف يوقف التسجيل

بيستعمل

onPlayerCommand

و اذا كان الكوماند

logout

يكنسل الايفينت و بكذا يوقف التسجيل

Link to comment

  
addEventHandler("onPlayerChat", root, 
function () 
    if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then 
    cancelEvent() 
    outputChatBox ( "Please Login First !!", source, 255, 0, 0, true ) 
    end 
end) 
  

addEventHandler("onPlayerCommand", root, 
function( cmd ) 
if cmd ==  "register" then 
cancelEvent() 
     end 
end) 
Link to comment
  
addEventHandler("onPlayerChat", root, 
function () 
    if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then 
    cancelEvent() 
    outputChatBox ( "Please Login First !!", source, 255, 0, 0, true ) 
    end 
end) 
  

addEventHandler("onPlayerCommand", root, 
function( cmd ) 
if cmd ==  "register" then 
cancelEvent() 
     end 
end) 

شكراً لك :)

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