Jump to content

تصحيح كود


Recommended Posts

السلام عليكم يا شباب لاهنتو ممكن تعدلو لي الكود هذا :$ا

Team2 = createTeam ( "Player", 0, 255, 0 ) 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( Account ) 
        if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then 
            setPlayerTeam( source, Team2 ) 
        end 
    end 
) 

Link to comment

local Team2 = createTeam ( "Player", 0, 255, 0 ) 
      
    addEventHandler ( "onPlayerJoin", root, 
        function ( player ) 
            if getElementType(player)=="player" then 
            setPlayerTeam(player,Team2) 
            end 
        end 
    ) 

ججرب , !

Link to comment
local Team2 = createTeam ( "Player", 0, 255, 0 ) 
      
    addEventHandler ( "onPlayerJoin", root, 
        function ( player ) 
            if getElementType(player)=="player" then 
            setPlayerTeam(player,Team2) 
            end 
        end 
    ) 

ججرب , !

أخوي حدث onPlayerJoin معرف له source تلقائي

--The source of this event is the player who joined.

  
local Team2 = createTeam ( "Player", 0, 255, 0 ) 
      
addEventHandler ( "onPlayerJoin", root, 
   function () 
         setPlayerTeam(source,Team2) 
   end 
) 
  
  

Link to comment

Server Side !

addEventHandler("onResourceStart",resourceRoot, 
function () 
local Team2 = createTeam ( "Player", 0, 255, 0 ) 
  
                       end 
) 
      
addEventHandler ( "onPlayerJoin", root, 
   function () 
         setPlayerTeam(source,Team2) 
  
                end 
) 

:roll:

Link to comment
Server Side !
addEventHandler("onResourceStart",resourceRoot, 
function () 
local Team2 = createTeam ( "Player", 0, 255, 0 ) 
  
                       end 
) 
      
addEventHandler ( "onPlayerJoin", root, 
   function () 
         setPlayerTeam(source,Team2) 
  
                end 
) 

:roll:

كودك غلط + ماتشوف ردي

Link to comment
Server Side !
addEventHandler("onResourceStart",resourceRoot, 
function () 
local Team2 = createTeam ( "Player", 0, 255, 0 ) 
  
                       end 
) 
      
addEventHandler ( "onPlayerJoin", root, 
   function () 
         setPlayerTeam(source,Team2) 
  
                end 
) 

:roll:

كودك غلط + ماتشوف ردي

:oops: مانتبهت

Link to comment
ACL ابي اعرف ليش تتحقق من ان اللاعب في قروب في

يمكن مسوي فريق للادمنية :lol:

if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then 

بالله ذا قروب للأدمنية ؟

:lol:

Link to comment
ACL ابي اعرف ليش تتحقق من ان اللاعب في قروب في

يمكن مسوي فريق للادمنية :lol:

if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then 

بالله ذا قروب للأدمنية ؟

:lol:

اوه افكر admin :lol::lol::lol::lol:

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