Jump to content

تصحيح كود


Recommended Posts

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

شباب انا عملت كود بس لاعب يروح الماركر لي حطيته يعطيه سيريال ذا الكود شوفولي اذا صح

function checkMyS( thePlayer, command ) 
local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) 
    local theSerial = getPlayerSerial( thePlayer ) 
    if theSerial then 
        outputChatBox( "سيريالك" .. theSerial, thePlayer ) 
    else 
     outputChatBox( "اسف انت لا تملك سيريال =(", thePlayer )    
    end 
end 
addCommandHandler( "myserial", checkMyS ) 
  

Link to comment

تفضل

  
--لما يلمس ماركر  
local Marker = createMarker(0, 0, 3, 'cylinder', 2.0, 255, 255, 255, 255) 
  
addEventHandler( "onMarkerHit", Marker, 
function( player )  
    if getElementType( player ) == "player" then 
        outputChatBox(" Your Serial is : "..getPlayerSerial( player ), player, 0, 255, 0 ) 
    end 
end 
) 
  
--- من اف 8 
addCommandHandler( "myserial", 
function( player ) 
outputChatBox(" Your Serial is : "..getPlayerSerial( player ), player, 0, 255, 0 ) 
end) 
  

Link to comment
  • Other Languages Moderators
شكرا لك المهم اني عملت كود بس الكود سهل ض1

انت ما سويت ولا شي

مجرد اخذت مثال الويكي و حطيت فيه هذا

local marker = createMarker (x, y, z, "cylinder", 2, 255, 0, 0) 

ولا انت مو داري وش الهرجه :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...