Jump to content

تصحيح


azeez_bq

Recommended Posts

سلام عليكم

ابي تصحيح لـ هل كود

function quitPlayer (quitType,reasond ) 
        local hp = getElementHealth(source) 
        local name =  getPlayerName(source) 
        local leftChars = 57 -  string.len(name) 
        local reason =  " ] " 
        if quitType == "Kicked" or quitType == "Banned" then 
                reason = string.sub(': ' .. (reasond or " - ") .. ' ] ',0,leftChars) 
        end 
        outputChatBox("* #ffff00" .. getPlayerName(source) .. "#ffffff's left the Server [#00FFFF " .. quitType .. "" .. reason .. "#ffffff[ #00FFFFHealth: " .. hp .. "#FFFFFF]", getRootElement(), 255, 0, 0,true) 
end 
addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer ) 
function PlayerJoin ( ) 
        outputChatBox("* #ffff00" .. getPlayerName(source) .. "#ffffff's Player Version is [#FF7777" .. getVer(getPlayerVersion ( source )) .. "#ffffff]", getRootElement(), 255, 0, 0,true) 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), PlayerJoin ) 
  
function getVer(ver) 
        return string.sub(ver, 1, 5).."."..string.sub(ver, 9, 13) 
end 
  

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

مثآل

z333's left the Server [ Quit ] [ Health: 100 ]

^ ,

الكود الي فوق يطلع لي اياها كذا

z333's left the Server [ Quit ] [ Health: 94.117645263672]

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