Jump to content

onPlayerConnect مشكلة


Recommended Posts

Posted
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
  )

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

330xum0.jpg330xum0.jpg330xum0.jpg

 

حياكم الله في سيرفر طارات العرب

n-560x95_FFFFFF_FFFFFF_000000_000000.png

تنورونا ~

*من يعيش علي الامل لا يعرف المستحيل*

330xum0.jpg330xum0.jpg330xum0.jpg

Posted (edited)
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|>
Posted
Just now, +Source|> said:

الكود شغال

 

انت ضيفه لمود الأدمن

ضايفه وما اشتغل

330xum0.jpg330xum0.jpg330xum0.jpg

 

حياكم الله في سيرفر طارات العرب

n-560x95_FFFFFF_FFFFFF_000000_000000.png

تنورونا ~

*من يعيش علي الامل لا يعرف المستحيل*

330xum0.jpg330xum0.jpg330xum0.jpg

Posted
1 hour ago, Sha67 said:

كيف طريقة تجربتك للكود؟ لازم تطلع وتدخل أو "onResourceStart" ضيف حدث 

ابي لما ادخل يقلي ممنوع

330xum0.jpg330xum0.jpg330xum0.jpg

 

حياكم الله في سيرفر طارات العرب

n-560x95_FFFFFF_FFFFFF_000000_000000.png

تنورونا ~

*من يعيش علي الامل لا يعرف المستحيل*

330xum0.jpg330xum0.jpg330xum0.jpg

Posted
2 minutes ago, #\_oskar_/# said:

تاكد انك حاطه جهة سيرفر 

:lol: لسه حي؟ 

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
4 minutes ago, #StrOnG_,) said:

:lol: لسه حي؟ 

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

  • Like 1

TehLMGN.png?1

 

سبحان الله وبحمده سبحان الله العظيم

Posted
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 

وورنا الميتا

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

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