Jump to content

onPlayerConnect مشكلة


Recommended Posts

local aCodes = {
  ":",
  "*",
  "&"
}

  addEventHandler("onPlayerConnect",root,
  function ( plrname )
    for _,v in ipairs ( aCodes ) do
if string.find ( tostring ( plrname ) , v ) then
  cancelEvent( true , "استخدام رموز ممنوعة" )	
        end
      end
    end
  )

وش المشكلة في الكود ؟

Link to comment
3 hours ago, abulghar said:

local aCodes = {
  ":",
  "*",
  "&"
}

  addEventHandler("onPlayerConnect",root,
  function ( plrname )
    for _,v in ipairs ( aCodes ) do
if string.find ( tostring ( plrname ) , v ) then
  cancelEvent( true , "استخدام رموز ممنوعة" )	
        end
      end
    end
  )

وش المشكلة في الكود ؟

الكود شغال

 

انت ضيفه لجروب ادمن

Edited by +Source|>
Link to comment
5 minutes ago, #\_oskar_/# said:

:D الحمدلله وباكل وبشرب كمان 

سبحان الله 

 

6 hours ago, abulghar said:

local aCodes = {
  ":",
  "*",
  "&"
}

  addEventHandler("onPlayerConnect",root,
  function ( plrname )
    for _,v in ipairs ( aCodes ) do
if string.find ( tostring ( plrname ) , v ) then
  cancelEvent( true , "استخدام رموز ممنوعة" )	
        end
      end
    end
  )

وش المشكلة في الكود ؟

تاكد انك حاطه server side 

وورنا الميتا

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