Jump to content

طللللب فنكشات او كود الي فاضي


HomeBoy

Recommended Posts

جـرب *

# Client

addEventHandler( "onClientGUIClick", YourButton, 
    function () 
         setElementData( localPlayer, "DataLang", true ) 
    end, false 
) 

# Server

local create = {} 
  
addCommandHandler( "cr", 
    function() 
           if getElementData( localPlayer, "DataLang") then 
           local create[source] = createObject( id, x, y, z ) 
        end 
    end 
) 

Edited by Guest
Link to comment
جـرب *

# Client

local create = {} 
  
addCommandHandler( "cr", 
    function() 
           if getElementData( localPlayer, "DataLang") then 
           local create[source] = createObject( id, x, y, z ) 
        end 
    end 
) 

# Server

addEventHandler( "onClientGUIClick", YourButton, 
    function () 
         setElementData( localPlayer, "DataLang", true ) 
    end, false 
) 

:shock::!:

Link to comment
جـرب *

# Client

local create = {} 
  
addCommandHandler( "cr", 
    function() 
           if getElementData( localPlayer, "DataLang") then 
           local create[source] = createObject( id, x, y, z ) 
        end 
    end 
) 

# Server

addEventHandler( "onClientGUIClick", YourButton, 
    function () 
         setElementData( localPlayer, "DataLang", true ) 
    end, false 
) 

:shock::!:

قلبت الكلنت سيرفر والسيرفر كلنت تم التعديل :lol:

Link to comment
جـرب *

# Client

local create = {} 
  
addCommandHandler( "cr", 
    function() 
           if getElementData( localPlayer, "DataLang") then 
           local create[source] = createObject( id, x, y, z ) 
        end 
    end 
) 

# Server

addEventHandler( "onClientGUIClick", YourButton, 
    function () 
         setElementData( localPlayer, "DataLang", true ) 
    end, false 
) 

قلبت الكلنت سيرفر والسيرفر كلنت تم التعديل

الكود هريسةة ..

addEventHandler( "onClientGUIClick", resourceRoot, function( ) 
  if ( source == button ) then 
        setElementData( localPlayer, 'CanCreate', true ) 
     end 
end ) 

local object = {  } 
  
addCommandHandler( "cr", function( player ) 
  if ( getElementData( player, 'CanCreate' ) ) then 
    if ( isElement( object[ player ] ) ) then destroyElement( object[ player ] ) object[ player ] = nil end 
           local x, y, z = getElementPosition( player ) 
           object[ player ] = createObject( id, x + 3, y, z  ) 
      end 
end ) 
  
  
addEventHandler( "onPlayerQuit", root, function(  ) 
  if ( isElement( object[ source ] ) ) then  
       destroyElement( object[ source ] )  
       object[ source ] = nil  
      end 
end ) 
Edited by Guest
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...