Jump to content

bosslorenz

Members
  • Posts

    200
  • Joined

  • Last visited

Everything posted by bosslorenz

  1. Does anyone knows what are the functions used for the script of zombie mode like in servers (chaos.de.to) / (gamenet.ga)? Just like onEverymap starts it picks a random players that goes to Humans and Zombies.
  2. local marker1 = createMarker ( 2507.2998046875, 1603, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate1 = createObject ( 16775, 2507.400390625, 1602.7001953125, 13.7) function movingObject ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "vehicle" ) then hitElement = getVehicleController ( hitElement ); if ( not hitElement ) then return false; end end local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.3999023438, 1602.6999511719, 5.7 ) end end end function moveObjectBack (hitElement, matchingDimension) if ( getElementType ( hitElement ) == "vehicle" ) then hitElement = getVehicleController ( hitElement ); if ( not hitElement ) then return false; end end local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker1 , movingObject ) addEventHandler ( "onMarkerLeave", marker1, moveObjectBack ) local marker2 = createMarker ( 2567.3000488281, 1483.6999511719, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate2 = createObject ( 16775, 2567.1005859375, 1484.099609375, 13.7) function movingObject2 ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "vehicle" ) then hitElement = getVehicleController ( hitElement ); if ( not hitElement ) then return false; end end local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 5.7 ) end end end function moveObjectBack2 (hitElement, matchingDimension) if ( getElementType ( hitElement ) == "vehicle" ) then hitElement = getVehicleController ( hitElement ); if ( not hitElement ) then return false; end end local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker2 , movingObject2 ) addEventHandler ( "onMarkerLeave", marker2, moveObjectBack2 ) function playerQuit () if isElementWithinMarker ( hitElement, marker1 ) then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end if isElementWithinMarker ( hitElement, marker2 ) then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end addEventHandler ("onPlayerQuit", root, playerQuit ) 78: Bad argument @ `isElementWithinMarker` [Expected element at argument 1, got nil] 82: Bad argument @ `isElementWithinMarker` [Expected element at argument 1, got nil]
  3. local marker1 = createMarker ( 2507.2998046875, 1603, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate1 = createObject ( 16775, 2507.400390625, 1602.7001953125, 13.7) function movingObject ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.3999023438, 1602.6999511719, 5.7 ) end end end function moveObjectBack (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker1 , movingObject ) addEventHandler ( "onMarkerLeave", marker1, moveObjectBack ) This is my problem. When I step into marker it doesnt have error. But when Im in a vehicle it gives me this error. *LVgate.lua:15: Bad argument @ `getPlayerTeam` [Expected player at argument 1, got vehicle]
  4. teamLV = getTeamFromName ("Las Venturas Mafia") function bot1() bots1 = exports.slothbot:spawnBot (2494.6000976563, 1587, 10.7, 0, 108, 0, 0, teamLV, 31, "guarding", true ) end addEventHandler ( "onResourceStart", getResourceRootElement(), bot1 ) why does the bot still shoots at me even when Im on team "Las Venturas Mafia"? I have created a team [Las Venturas Mafia] on another lua script. Is there a problem here on my script. Maybe the bots1 is not on teamLV yet?
  5. function boss ( ) local Team = createTeam ( "Las Venturas Mafia", 0, 0, 255 ) local nemesi = exports [ "slothbot" ]:spawnBot ( 2494.6000976563, 1587, 10.7, 0, 108, 0, 0, Team, 38, "guarding", true ) local nemesi1 = exports [ "slothbot" ]:spawnBot ( 2494.6000976563, 1587, 10.7, 0, 108, 0, 0, Team, 38, "guarding", true ) local nemesi2 = exports [ "slothbot" ]:spawnBot ( 2494.6000976563, 1587, 10.7, 0, 108, 0, 0, Team, 38, "guarding", true ) local nemesi3 = exports [ "slothbot" ]:spawnBot ( 2494.6000976563, 1587, 10.7, 0, 108, 0, 0, Team, 38, "guarding", true ) setTimer ( function ( b, b1, b2, b3 ) local Team = getTeamFromName ( "Nemsis" ) exports [ "slothbot" ]:setBotTeam ( b, Team ) exports [ "slothbot" ]:setBotTeam ( b1, Team ) exports [ "slothbot" ]:setBotTeam ( b2, Team ) exports [ "slothbot" ]:setBotTeam ( b3, Team ) local botTeam = exports [ "slothbot" ]:getBotTeam ( b ) if ( botTeam ) then outputChatBox ( "nemesi bot is on the team Nemsis" ) else outputChatBox ( "nemesi bot is not in a team." ) end end ,1000, 1, nemesi, nemesi1, nemesi2, nemesi3 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), boss ) They still kill each other, I got this script from solidsnake
  6. Still wont work on both lines u suggested
  7. teamLV = getTeamFromName ("Las Venturas Mafia") function bot1() bots1 = exports.slothbot:spawnBot (2494.6000976563, 1587, 10.7, 0, 108, 0, 0, teamLV, 31, "guarding", true ) end addEventHandler ( "onResourceStart", getResourceRootElement(), bot1 ) Even when im on team Las Venturas Mafia , the bot still shoots me? any error sighted? Ive got no error on debugscript
  8. I want to check if the player on vehicle is on team Las Venturas Mafia it will open the gate..
  9. What I mean if the other player is on vehicle that is not on team Las Venturas , it still opens the gate. I only want to open the gate when the player team Las Venturas Mafia is on vehicle. isPedonVehicle?
  10. local marker1 = createMarker ( 2507.2998046875, 1603, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate1 = createObject ( 16775, 2507.400390625, 1602.7001953125, 13.7) function movingObject ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.3999023438, 1602.6999511719, 5.7 ) end end end function moveObjectBack (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker1 , movingObject ) addEventHandler ( "onMarkerLeave", marker1, moveObjectBack ) local marker2 = createMarker ( 2567.3000488281, 1483.6999511719, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate2 = createObject ( 16775, 2567.1005859375, 1484.099609375, 13.7) function movingObject2 ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 5.7 ) end end end function moveObjectBack2 (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="Las Venturas Mafia" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker2 , movingObject2 ) addEventHandler ( "onMarkerLeave", marker2, moveObjectBack2 ) function playerQuit () if isElementWithinMarker ( source, marker1 ) then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end if isElementWithinMarker ( source, marker2 ) then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end addEventHandler ("onPlayerQuit", root, playerQuit ) Got error : Bad argument @ `getPlayerTeam` [Expected player at argument 1, got vehicle]
  11. function playerQuit () if ( isElementWithinMarker ( source, marker1 ) ) then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end addEventHandler ("onPlayerQuit", root, playerQuit ) function playerQuit2 () if ( isElementWithinMarker ( source, marker2 ) ) then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end addEventHandler ("onPlayerQuit", root, playerQuit2 ) Thanks for your helps.. I already solved it
  12. Doesnt close still even with the quote "
  13. local marker1 = createMarker ( 2507.2998046875, 1603, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate1 = createObject ( 16775, 2507.400390625, 1602.7001953125, 13.7) function movingObject ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.3999023438, 1602.6999511719, 5.7 ) end end end function moveObjectBack (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker1 , movingObject ) addEventHandler ( "onMarkerLeave", marker1, moveObjectBack ) local marker2 = createMarker ( 2567.3000488281, 1483.6999511719, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate2 = createObject ( 16775, 2567.1005859375, 1484.099609375, 13.7) function movingObject2 ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 5.7 ) end end end function moveObjectBack2 (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker2 , movingObject2 ) addEventHandler ( "onMarkerLeave", marker2, moveObjectBack2 ) function moveObjectBack3 (leaveElement, matchingDimension) local gPT = getPlayerTeam ( leaveElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( leaveElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ("onPlayerQuit, marker1, function () moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end ) Still doesnt close when player quits ....
  14. local marker1 = createMarker ( 2507.2998046875, 1603, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate1 = createObject ( 16775, 2507.400390625, 1602.7001953125, 13.7) function movingObject ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.3999023438, 1602.6999511719, 5.7 ) end end end function moveObjectBack (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate1, 3000, 2507.400390625, 1602.7001953125, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker1 , movingObject ) addEventHandler ( "onMarkerLeave", marker1, moveObjectBack ) local marker2 = createMarker ( 2567.3000488281, 1483.6999511719, 9.6000003814697, 'cylinder', 6, 0, 255, 0, 0) local gate2 = createObject ( 16775, 2567.1005859375, 1484.099609375, 13.7) function movingObject2 ( hitElement, matchingDimension ) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 5.7 ) end end end function moveObjectBack2 (hitElement, matchingDimension) local gPT = getPlayerTeam ( hitElement ) local gTN = ( gPT and getTeamName ( gPT ) or "" ) if gTN =="LV" then if getElementType ( hitElement ) == "player" then moveObject ( gate2, 3000, 2567.1005859375, 1484.099609375, 13.7 ) end end end addEventHandler ( "onMarkerHit", marker2 , movingObject2 ) addEventHandler ( "onMarkerLeave", marker2, moveObjectBack2 ) Someone knows how to make it auto close when hitElement is on the marker and quits... the door automatically closes?. B`coz mine is when I`m on the marker it opens and when I quit the door stays open.
  15. bosslorenz

    Skin gui

    local marker1 = createMarker ( 2492.6000976563,1518.6999511719,9.7,"cylinder",1,0,0,255,155 ) GUIEditor = { gridlist = {}, button = {}, window = {} } function showSKIN(p) if (p == localPlayer) then GUIEditor.window[1] = guiCreateWindow(0, 47, 194, 409, "Las Venturas Gang Skins", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") GUIEditor.gridlist[1] = guiCreateGridList(9, 38, 175, 361, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Skin Name", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "ID", 0.5) for i = 1, 10 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "Russian Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "111", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "Russian Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 1, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "112", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "Russian Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 2, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 2, 2, "113", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 1, "Leone Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 3, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 3, 2, "125", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 1, "Leone Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 4, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 4, 2, "126", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 1, "Leone Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 5, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 5, 2, "127", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 1, "Forelli Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 6, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 6, 2, "272", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 1, "Sindacco Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 7, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 7, 2, "120", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 1, "Sindacco Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 8, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 8, 2, "124", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 1, "Sindacco Skin", false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], 9, 1, 255, 0, 0, 255) guiGridListSetItemText(GUIEditor.gridlist[1], 9, 2, "308", false, false) GUIEditor.button[1] = guiCreateButton(41, 227, 92, 44, "Set Skin", false, GUIEditor.gridlist[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(95, 318, 70, 33, "Close", false, GUIEditor.gridlist[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") showCursor(true) end end addEventHandler("onClientMarkerHit",marker1,showSKIN) Does anyone know how to make a player set skin working with my GUI scripts on top....
  16. bosslorenz

    Ped

    Does anyone know how can I make this ped freezed even when bumped....or fired with rocket launcher/.... LVHshop = createPed ( 274, 1932.5999755859, 1374.5, 9.3000001907349, 270) function cancelPedDamage() cancelEvent() end addEventHandler("onClientPedDamage", LVHshop, cancelPedDamage)
  17. Still not working.. Even when I added this on function teamM () addEventHandler ("onClientGUIClick", root, teamM)
  18. 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 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) giveWeapon ( source, 30, 1000 ) giveWeapon ( source, 32, 1000 ) end addEvent("team1", true) addEventHandler("team1", root, teamm) STILL NOT WORKING, AFTER CLICKING THE BUTTON , IT DOES NOT SPAWN ME
  19. SERVER~~ function panel() triggerClientEvent (source,"onClientPlayerLogin",source) end addEventHandler("onPlayerLogin", root, panel) function teamm () setPlayerTeam(player,team1) spawnPlayer (player, 202.39999389648, 1858.4000244141, 13.10000038147, 0, 312, 0, 0) giveWeapon ( player, 30, 1000 ) giveWeapon ( player, 32, 1000 ) end addEvent("team1", true) addEventHandler("team1", root, teamm) 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 Now the panels working,,, the spawn function doesnt work : clicking button [1] doesnt spawn me
  20. WTF All thats making it not functioning is b`coz of this... I figured it out. I compared my spawn panel to my vehicle spawner and it worked.. This is it thats ruining my panel. Its working now after removing this line: GUIEditor.progressbar[1] = guiCreateProgressBar(0, 0, 800, 600, false) But can I ask what is this progressbar?
  21. Nope , after logging in the GUI panel shows, coz I made a script onPlayerLogin.. the real problem here is the GUI panel looks like a picture as I said its stucked!.... Even though Imade it onClientMarkerHit... the panel is still stucked!..... zzzz
×
×
  • Create New...