Jump to content

مساعدة في كود


ryan112

Recommended Posts

سلام عليكم شباب احتاج كود مهم 

 

addCommandHandler("ctt", ctt)

function john(player, cmd) 
    local name = getPlayerName(player) 
    local r,g,b = getPlayerNametagColor (player)
    local px,py,pz = getElementPosition(source)
    local playerColor = string.format("#%02X%02X%02X",r,g,b)    
    local accountname = getAccountName (getPlayerAccount(player)) 
        if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "VIP" ) ) then 
        if isPlayerMuted ( player ) then 
        return outputChatBox("• You are muted", player,255,0,0,true)
        end
        if not getElementData ( player, "commandTimer" ) then 
        setElementData ( player, "commandTimer", true ) 
        cooldown = setTimer ( setElementData, 15000, 1, player, "commandTimer", false )
        outputChatBox ( "• "..playerColor.."" .. name .. " #006400AND HIS NAME IS JOHN CENAAAAA!!!", getRootElement(), 0,100,0, true ) 
        triggerClientEvent ("stopOldSound", getRootElement()) 
        triggerClientEvent ("john", getRootElement()) 
        else
        local remaining = getTimerDetails(cooldown)
        local theTime = remaining/1000
        outputChatBox("• Please wait "..math.floor(tonumber(theTime)).." seconds before playing sounds again",player,255,0,0,true)
        end
    else outputChatBox ( "• You need to be a vip to be able to use this", player, 255, 0, 0, true ) return end 
end 

هاد مود ازا لاعب كتب في f8 ctt تطلع اغنية 

بس سيرفر كلو يسمعها انا بدي بس محلو مو هوا واقف يسمعهوا عني local 

 

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