Jump to content

Anti Fake X~ منع تعدد اسماء لإعبين


Recommended Posts

بسم الله الرحمن الرحيم

منذ وقت بعيد لم اطرح موضوع

زر إضافة موضوع جديد مغبر شوي :mrgreen:

قلنا ننضف الغبره ونطرح كود منع تعدد اسماء لإعبين

سيرفر ::

  
t = { } 
  
function isjoin ( ) 
    local plaN = getPlayerName ( source ) 
        local plaS = getPlayerSerial(source) 
   if t[tostring(plaS)] then 
            setPlayerName ( source,t[tostring(plaS)] )  
      else 
          t[plaS] = plaN 
 end 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), isjoin ) 
  
  
function isnick() 
        cancelEvent() 
end 
addEventHandler("onPlayerChangeNick", getRootElement(), isnick) 

فمآن الله

Edited by Guest
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...