Jump to content

spawn panel


bosslorenz

Recommended Posts

client:

GUIEditor = { 
    tab = {}, 
    progressbar = {}, 
    tabpanel = {}, 
    button = {}, 
    window = {}, 
    memo = {} 
} 
  
function spawnPanel() 
        GUIEditor.window[1] = guiCreateWindow(234, 105, 317, 372, "Zombie Infestation |DayZ| (PH SERVER)", false) 
        guiWindowSetMovable(GUIEditor.window[1], false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") 
  
        GUIEditor.memo[1] = guiCreateMemo(9, 20, 298, 105, "Welcome to Zombie Infestation |DayZ|\nBelow are the list of teams that will be available for you.\nRead every team's description.\nJoin the team you want to fight against the massive army of zombies.", false, GUIEditor.window[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[1], true) 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 131, 298, 224, false, GUIEditor.window[1]) 
  
        GUIEditor.tab[1] = guiCreateTab("Team 1", GUIEditor.tabpanel[1]) 
  
        GUIEditor.memo[2] = guiCreateMemo(0, 0, 298, 107, "~MILITARY~\nOne of the deadliest gang in Las Venturas.\nPowerful weapons.\nLocated at west of Las Venturas in military base.\n\nGANG WAR : ON", false, GUIEditor.tab[1]) 
        guiMemoSetReadOnly(GUIEditor.memo[2], true) 
        GUIEditor.button[1] = guiCreateButton(41, 117, 216, 55, "CHOOSE MILITARY", false, GUIEditor.tab[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF06FF00") 
  
        GUIEditor.tab[2] = guiCreateTab("Team 2", GUIEditor.tabpanel[1]) 
  
        GUIEditor.memo[3] = guiCreateMemo(0, 0, 298, 142, "~LV MAFIA~\nOne of the deadliest gang in Las Venturas.\nConsist of 3 mob families :\n1) Forelli Family (Leader)\n2) Leone Family\n3) Sindacco Family\nRichest team in Las Venturas.\nLocated center of LV on the main streets.\n\nGANG WAR : ON", false, GUIEditor.tab[2]) 
        guiMemoSetReadOnly(GUIEditor.memo[3], true) 
        GUIEditor.button[2] = guiCreateButton(23, 152, 251, 42, "CHOOSE LV MAFIA", false, GUIEditor.tab[2]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFBA00FF") 
  
        GUIEditor.tab[3] = guiCreateTab("Team 3", GUIEditor.tabpanel[1]) 
  
        GUIEditor.memo[4] = guiCreateMemo(0, 0, 298, 133, "~DEADMAN.INC~\nKnown as Varrios Los Aztecas.\nThey are veterans in carjacking and gun running.\nThey are the rival of military in taking territory over the west of Las Venturas.\nLocated at west of Las Venturas near LV Airport.\n\nGANG WAR : ON", false, GUIEditor.tab[3]) 
        guiMemoSetReadOnly(GUIEditor.memo[4], true) 
        GUIEditor.button[3] = guiCreateButton(44, 139, 209, 60, "CHOOSE DEADMAN.INC", false, GUIEditor.tab[3]) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF0000FF") 
  
        GUIEditor.tab[4] = guiCreateTab("Team 4", GUIEditor.tabpanel[1]) 
        GUIEditor.memo[5] = guiCreateMemo(0, 0, 298, 112, "~ZOMBIELAND KILLERS~\nTheir job is only killing zombies.\nThey earn cash by killing zombies.\nSafe from gangwar.\n\nGANG WAR : OFF", false, GUIEditor.tab[4]) 
        guiMemoSetReadOnly(GUIEditor.memo[5], true) 
        GUIEditor.button[4] = guiCreateButton(27, 124, 243, 59, "CHOOSE ZOMBIELAND KILLERS", false, GUIEditor.tab[4]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFB00") 
  
        guiSetAlpha(GUIEditor.progressbar[1], 0.00) 
        showCursor(true) 
end 
addEvent ("onClientPlayerLogin",true) 
addEventHandler ("onClientPlayerLogin", root, spawnPanel) 
  
function teamM() 
    if ( source == GUIEditor.button[1] ) then 
    triggerServerEvent("team1",source) 
    guiSetVisible(GUIEditor.window[1],false) 
    showCursor(false) 
    end 
end 
addEventHandler ("onClientGUIClick", guiRoot, teamM) 

server:

function panel() 
    triggerClientEvent (source,"onClientPlayerLogin",source) 
end 
addEventHandler("onPlayerLogin", root, panel) 
  
function teamm () 
    setPlayerTeam(source,team1) 
    spawnPlayer (source, 202.39999389648, 1858.4000244141, 13.10000038147, 0, 312, 0, 0) 
    fadeCamera (source, true) 
    setCameraTarget (source, source) 
    giveWeapon ( source, 30, 1000 ) 
    giveWeapon ( source, 32, 1000 ) 
end 
addEvent("team1", true) 
addEventHandler("team1", root, teamm) 

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