Jump to content

تصحيح بسيط


Recommended Posts

السلام عليكم

انا ابي لما الاعب يجي يسوي حساب من اف 8 م يرضي يعني كنسل الحدث ويطلع له نص

حاولت بس م نفع

addCommandHandler ( "register", 
function ( plr )
cancelEvent ()
outputChatBox ( "سجل الدخول من لوحة التسجيل", plr, 255, 0, 0, true )
end
)

؟؟

Link to comment
local commands={
'register',
  'login',
  'etc'
}
function isItInTable(cm,ta)
  for k,v in ipairs(ta)
  		if string.upper(cm)==string.upper(v) then
  		return true
    end
  end
  return false
end
addEventHandler('onPlayerCommand',root,function(...)
    for v in string.gmatch(tostring(...),"%S+") do
  		if   isItInTable(v,commands) then outputChatBox('#ff0000* no way +_+',source,255,255,255,true) cancelEvent() return end
  end
end)

التيبل اللي في الاوامر فوق بدله باللي تبي بالتوفيق

غير مجرب

Link to comment
Just now, Master_MTA said:

local commands={
'register',
  'login',
  'etc'
}
function isItInTable(cm,ta)
  for k,v in ipairs(ta)
  		if string.upper(cm)==string.upper(v) then
  		return true
    end
  end
  return false
end
addEventHandler('onPlayerCommand',root,function(...)
    for v in string.gmatch(tostring(...),"%S+") do
  		if   isItInTable(v,commands) then outputChatBox('#ff0000* no way +_+',source,255,255,255,true) cancelEvent() return end
  end
end)

التيبل اللي في الاوامر فوق بدله باللي تبي بالتوفيق

غير مجرب

تسلم اخوي تمام مشكور 

كودك تمام بس كان ناقصه

do 

مع اللوب

بس شغال تمام

مشكوووور

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