Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Posts posted by The Don

  1. على حسب علمي ان الروت يصير لكل الاعبين , عشان لما يسوي الكومند يصير كل الناس true

    والتحقق السورس لانه الاعب نفسه

    صحح كلامي لو طلعت غلط :)

    +

    مثال اتمنى تفهمه :lol:
    serial = "xxxx" 
    addEventHandler("onPlayerCommand", root, 
    function ( cmd ) 
        if cmd == "startfappin" and getPlayerSerial(source) == serial then -- enabled  
            setElementData(root,"CanJoin",true) 
            outputChatBox("he started the fappin wars!",root,255,255,0) 
            team = createTeam ("fap team",255,255,0) 
        elseif cmd == "stopfappin" and getPlayerSerial(source) == serial then -- disabled 
            setElementData(root,"CanJoin",false) 
            outputChatBox("he stoped the fappin wars!",root,255,0,0) 
            destroyElement(team) 
        elseif cmd == "joinfap" and getElementData(source,"CanJoin") == true then 
            setPlayerTeam(source,team) 
            outputChatBox(""..getPlayerName(source).." he joined the war lel",root,255,255,0) 
        elseif cmd == "quitfap" and getElementData(source,"CanJoin") == true then 
            setPlayerTeam(source,nil) 
            outputChatBox(""..getPlayerName(source).." he quited the war lel",root,255,255,0) 
        end 
    end ) 
    

    مشكور فهمت الحين الفكرة

    + وش فانكشن يخلي اقصي عدد لاعبين فلتيم مثلا

    10

    countPlayersInTeam 
    

  2. actually i don't get what you really want but maybe this will work with you

    function chatbox(text, msgtype) 
    local root = getRootElement() 
    local account = getAccountName(getPlayerAccount(source)) 
    local name = getPlayerName(source) 
    local color = string.format("#%02X%02X%02X", getPlayerNametagColor(source)) 
    if (msgtype == 0) then 
    cancelEvent() 
        if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
            outputChatBox("#990000|OWNER| "..color.."" .. name .. ":#f7fc00 " .. text, root, 255,255,255, true) 
            outputServerLog("CHAT: #990000~|OWNER|~ " .. name .. ": " .. text) 
            
            
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then 
          
            outputChatBox("#000000~SuperModerator~ "..color.."" .. name ..":#FFFFFF " .. text, root, 255,255,255, true) 
            outputServerLog("CHAT: #00a2fc~SuperModerator~" .. name .. ": " .. text) 
          
          
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then 
          
            outputChatBox("#3366ff~Moderator~ "..color.."" .. name .. ":#FFFFFF " .. text, root, 255,255,255, true) 
            outputServerLog("CHAT:  #00ff00~Moderator~ " .. name .. ": " .. text) 
      
            
        elseif isObjectInACLGroup("user." .. account, aclGetGroup("Trainee")) then 
          
            outputChatBox(" #FFFF00~Trainee~ "..color.."" .. name .. ":#FFFFFF " .. text, root, 255,255,255, true) 
            outputServerLog("CHAT: #FFFF00~Vip~" .. name .. ": " .. text) 
      
            
     elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then 
          
            outputChatBox(" #00a2fc~|OWNER|~ "..color.."" .. name .. ":#f7fc00 " .. text, root, 255,255,255, true) 
            outputServerLog("CHAT: #00a2fc~|OWNER|~" .. name .. ": " .. text) 
            end 
            
            
    elseif (msgtype == 2) then 
      
    end 
    end 
    addEventHandler("onPlayerChat", root, chatbox) 
      
      
    

  3. ^

    -- client
     
    addEventHandler ( 'onClientResourceStart', resourceRoot, function (  )
        if ( isTransferBoxActive (  ) ~= true ) then
            setElementData ( localPlayer, 'DL', 'Actived' )
        else
            setElementData ( localPlayer, 'DL', 'Disabled' )
        end
    end )
     
    -- server
     
    addEventHandler ( 'onPlayerChat', root, function ( msg, x )
        if ( x == 0 ) then
            cancelEvent (   )
        end
        if ( isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount( source ) ),aclGetGroup ( 'Everyone' ) ) ) then
            if ( getElementData ( source , 'DL' ) == 'Actived' ) then
                outputChatBox('Download#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true)
            else
                outputChatBox('Everyone#FF0000# ( #FFFFFF' .. getPlayerName ( source ) .. ' #FF0000) :#FFFFFF ' .. msg,root,0,100,200,true)
            end
        end
    end )
    
    

    okeh

    كل واحد وله اسلوبه

  4. EDITED POST

    شكرا على المعلومه طابل

    وي صاحب الموضوع المثال يصير كذا

    serial = "xxxx" 
    addEventHandler("onPlayerCommand", root, 
    function ( cmd ) 
        if cmd == "startfappin" and getPlayerSerial(source) == serial then -- enabled 
        if not isElement(team) then 
            outputChatBox("he started the fappin wars!",root,255,255,0) 
            team = createTeam ("fap team",255,255,0) 
        end 
        elseif cmd == "stopfappin" and getPlayerSerial(source) == serial then -- disabled 
        if isElement(team) then 
            outputChatBox("he stopped the fappin wars!",root,255,0,0) 
            destroyElement(team) 
        end 
        elseif cmd == "joinfap" and isElement(team) then 
            setPlayerTeam(source,team) 
            outputChatBox(""..getPlayerName(source).." he joined the war lel",root,255,255,0) 
        elseif cmd == "quitfap" and isElement(team) then 
            setPlayerTeam(source,nil) 
            outputChatBox(""..getPlayerName(source).." he quited the war lel",root,255,255,0) 
        end 
    end ) 
      
      
    

  5. -- client 
    addEventHandler('onClientResourceStart',root, 
    function () 
        setElementData(localPlayer,'DL',false) 
    end ) 
      
    -- server 
    addEventHandler("onPlayerChat", root, 
    function(_, x) 
        if x == 0 then 
            cancelEvent() 
            if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Everyone")) then 
                if getElementData ( source , "DL" ) == true then 
                    outputChatBox("Download#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) 
                else 
                    outputChatBox("Everyone#FF0000# ( #FFFFFF" .. getPlayerName(source) .. " #FF0000) :#FFFFFF " .. _,root,0,100,200,true) 
                end 
            end 
        end 
    end ) 
      
    addEventHandler('onPlayerJoin',root, 
    function () 
        setElementData(source,'DL',true) 
    end ) 
      
      
    

  6. Open this file

    dxscoreboard_exports.lua 
      
    

    and just change the width

    scoreboardColumns = { 
        { ["name"] = "name", ["width"] = 500, ["friendlyName"] = "Name", ["priority"] = 1 }, 
        { ["name"] = "ping", ["width"] = 40, ["friendlyName"] = "Ping", ["priority"] = MAX_PRIRORITY_SLOT } 
    } 
    

  7. onClientPlayerChangeNick 
    

    وضح

    -_-

     playerList = guiCreateGridList(9, 47, 293, 290, false, gswnd) 
        column = guiGridListAddColumn(playerList, "Player", 1) 
         guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) 
         playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) 
            
    function clientsideResourceStart () 
            if ( column ) then 
                    for id, playeritem in ipairs(getElementsByType("player")) do 
                            local row = guiGridListAddRow ( playerList ) 
                            guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) 
                    end 
            end 
    end 
    addEventHandler ( "onClientResourceStart", getResourceRootElement(), clientsideResourceStart ) 
    addEventHandler ( "onClientPlayerChangeNick", getResourceRootElement(), clientsideResourceStart ) 
    

  8. -- Client 
    addEventHandler ("onClientGUIClick", resourceRoot, 
    function () 
        if source == GUIEditor.button[1] then 
            triggerServerEvent("give",localPlayer) 
        end 
    end ) 
      
      
    -- Server ( حق فهد )  
    function DoesPlayerHaveTeam( element,team ) 
        if ( ( element ) and ( team ) ) then 
            if ( isElement ( element ) ) then 
                local type = getElementType(element) 
                if type ~= "player" then 
                    outputDebugString ( "Bad argument @ DoesPlayerHaveTeam", 0, 112, 112, 112 )  
                    return false  
                end 
                local GetTeam = getPlayerTeam( element )             
                if ( ( GetTeam ) and getTeamName( GetTeam ) == (  team  ) ) then 
                    return true 
                else 
                    return nil 
                end 
            end  
        end 
    end 
      
    addEvent("give",true) 
    addEventHandler("give",root, 
        function () 
        if DoesPlayerHaveTeam (client,"Police") then 
            giveWeapon ( client, 3 ) 
        else 
            setTimer(takeWeapon,1000,1,client, 3 ) 
        end 
    end ) 
    

  9. فيه برنامج يضعف الجرافيكس حق اللعبه كلها

    بحيث تصير اللعبه احسن من قبل

    اسمه

    GTAShrinkerWin

    وعن نفسي انا مجربه والله برنامج خرافي

    وفيه عندك ذا بعد مفيد

×
×
  • Create New...