Jump to content

franku

Members
  • Posts

    133
  • Joined

  • Last visited

Posts posted by franku

  1. Whenever i want to join a team, a blackscreen pops up and remains, it sometimes doesn't pop up and everything looks fine!, but my friend just can't join because of the blackscreen.

    if i joined successfully without blackscreen he won't be able to, vice versa.

    i use removeEventHandler,

    code

    local xz,yz = guiGetScreenSize() 
      
    function fsdll() 
    local showIt = true 
        if (showIt) then 
            showChat(true) 
            dxDrawImage(0, 0, xz, yz, "background.png") 
        end 
    end 
    addEventHandler( "onClientRender", root, fsdll ) 
      
      
    addCommandHandler( "ballas", function () 
        for _, player in ipairs(getElementsByType("player")) do 
            removeEventHandler( "onClientRender", root, fsdll ) 
        end 
    end) 
      
    addCommandHandler( "grove", function () 
        for _, player in ipairs(getElementsByType("player")) do 
            removeEventHandler( "onClientRender", root, fsdll ) 
        end 
    end) 
    

    blackscreen

    Gp2UXss.png

  2. function loginPlayer ( thePlayer, command, username, password ) 
        local account = getAccount ( username, password )  
            if ( account ~= false )   
                logIn ( thePlayer, account, password )  
                 
                outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 )  
            end 
    end 
    addCommandHandler ( "log-in", loginPlayer ) 
    addEventHandler("onPlayerJoin",root,function() 
        if getAccount(getPlayerName(source)) then 
            outputChatBox("Please Login!",source) 
        else 
            outputChatBox("Please Register!",source) 
        end 
    end) 
    function callAdmin ( playerSource ) 
         
        sourceAccount = getPlayerAccount ( playerSource ) 
         
        if isGuestAccount ( sourceAccount ) then 
             
            outputConsole ( "Please register to use this function!", playerSource ) 
        else 
             
        end 
    end 
      
    addCommandHandler ( "call_admin", callAdmin ) 
    

×
×
  • Create New...