Jump to content

كيف اقدر امنع /register /login /logout


BadBoy

Recommended Posts

السلام عليكم ورحمة الله وبركاته ,,

كيف اقدر امنع الكلمات من اف 8 ,,

الي هي ,,

( login | register | logout ) ,,

اقدر امنعها بكود او شيء ؟ ,,

ننتظركم..

عليكم السلام

onPlayerCommand

cancelEvent 

ماضبطط المود وهذه هو الكود الي انا سويته ,,

addEventHandler("onPlayerCommand",root, 
function(cmd) 
if cmd == login then 
cancelEvent(true) 
outputChatBox(" disbaled this command",255,0,0,false) 
elseif cmd == register then 
cancelEvent(true) 
outputChatBox(" disbaled this command",255,0,0,false) 
elseif cmd == logout then 
cancelEvent(true) 
outputChatBox(" disbaled this command",255,0,0,false) 
  end 
end 
) 
Link to comment
  
-- Server Side ! 
addEventHandler("onPlayerCommand",root, 
function(cmd) 
if ( cmd == login ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
elseif ( cmd == register ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
elseif ( cmd == logout ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
  end 
end) 

Link to comment
  
-- Server Side ! 
addEventHandler("onPlayerCommand",root, 
function(cmd) 
if ( cmd == login ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
elseif ( cmd == register ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
elseif ( cmd == logout ) then 
cancelEvent() 
outputChatBox(" disbaled this command",source,255,0,0,false) 
  end 
end) 

ماضبط +

عادي لو انا خليت true

او بدون كذا كذا نفس الشيء ذذ

Link to comment

Parameters

string command 

--

addEventHandler ( "onPlayerCommand", root, function ( cmd ) 
if ( cmd == "login" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
elseif ( cmd == "register" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
elseif ( cmd == "logout" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
  end 
end 
) 

Link to comment
Parameters
string command 

--

addEventHandler ( "onPlayerCommand", root, function ( cmd ) 
if ( cmd == "login" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
elseif ( cmd == "register" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
elseif ( cmd == "logout" ) then 
cancelEvent (  ) 
outputChatBox ( " disbaled this command", source, 255, 0, 0, false ) 
  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...