Jump to content

Schlammy

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by Schlammy

  1. the script is correct i tested it. Hes shooting on ground but not flying. Thats the problem to trigger the parachute
  2. iam at work.. Ill test it later during night when i come home
  3. playertable and there you make a ped table for each player Or like this pedCountTable = {} then you can set a new item for each player pedCountTable[thePlayer] = countOfPeds
  4. ???? Why should this help me to warp permanent up?
  5. Hey guys. I Made a skydive script and i want to open the Parachute of the Player who type the command. I tried to use setControlState with the control "fire" but it won`t work in the air. Someone who know what to do? Example (not tested) -- SERVER function skyD(player) local px,py,pz = getElementModel(player) setElementPosition(player, px,py,(pz + 300)) giveWeapon ( player,46 ,1, true ) -- Here i trigger client event triggerClientEvent("clientStartFiring", player, true) setTimer(function() triggerClientEvent("clientStartFiring", player, false) end, 500, 1) end addCommandHandler("letMeFly", skyD) -- CLIENT function clientStartFiring(state) setControlState("fire", state) end addEvent("clientStartFiring", true) addEventHandler("clientStartFiring", getRootElement(), clientStartFiring)
  6. Schlammy

    Highmap

    yes you`r right. Ill try it first by myself
  7. Schlammy

    Highmap

    Can we take a talk later o in the next days about it? It would be nice if you could help me a bit
  8. Schlammy

    Highmap

    its not a problem of my computer i have a new one with nvidia geforce gtx 690 and the newest I7 i wan to make a highmap image of this hole island of objects but the server cant render this all
  9. Schlammy

    Highmap

    hey guys. Me and my Team are creating a new gamemode like Adventure Survivel from Bear grylls. We made a map larger then San fierro and now we want to make a minimap of this island. But How? The Game is to slow to render all of the more then 500 thousend Objects. What can i do now?
  10. Und ein Scripter der ein ganzes RL Scripten soll und das kann wird mehr verlangen als 50€. Bei 300 bis 400 bist du da gut im Rennen ansonsten vio-lite oder extendet oder was immer
  11. villeicht gleichen resourcen/funktions namen so dass die alte map geladen wird und danach ersetzt wird mit deiner?
  12. yes it is. with dxdraw
  13. Ok I`ll test it as soon as possbile
  14. local messageBoxVisible = true newMessageBoxGui = { gridlist = {}, window = {} } function toggleNewWindowVisible() if (messageBoxVisible == true) then guiSetVisible(newMessageBoxGui.window[1], false) messageBoxVisible = false else guiSetVisible(newMessageBoxGui.window[1], true) messageBoxVisible = true end end addEventHandler("onClientResourceStart", resourceRoot, function() newMessageBoxGui.window[1] = guiCreateWindow(0.33, 0.00, 0.33, 0.15, "", true) guiWindowSetSizable(newMessageBoxGui.window[1], false) guiSetAlpha(newMessageBoxGui.window[1], 0.59) newMessageBoxGui.gridlist[1] = guiCreateGridList(0.03, 0.17, 0.94, 0.76, true, newMessageBoxGui.window[1]) column = guiGridListAddColumn( newMessageBoxGui.gridlist[1], "", 0.85 ) if ( column ) then row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, "Willkommen auf ATV - Reallife", false, false ) end guiSetVisible(newMessageBoxGui.window[1], true) addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") bindKey("o", "down", toggleNewWindowVisible) end ) function addNewMessage(message) local row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, message, false, false ) local rowCount = guiGridListGetRowCount ( newMessageBoxGui.gridlist[1] ) setTimer ( guiGridListSetHorizontalScrollPosition, 50, 1, newMessageBoxGui.gridlist[1], 100 ) end Don`t work ...
  15. jo war da auch scripter habe denen gute scripts gegeben (z.B. auch das Taschendiebstahl system) und mein selfmade RPG system. Ich habe beobachtet, dass der Hauptscripter, welcher zufällig Army Leader war bzw ist, nur für die Army alles mögliche codet wie z.B. Raketen oder andere sinnlose Waffentechniken. Habe ihn drauf angesprochen am nächsten Tag wurde ich aus dem Team geworfen. Grund: Unfähigkeit im scripten LOL. Als ich im Forum ein Statement meinerseits abgab und Fragen stellte warum wurde ich überall gebannt. Sprich TS³ und Forum sowie Ingame. Super Server.
  16. Okey i'll test it as soon as possible
  17. function addText(List, column, text) local row = guiGridListAddRow ( List ) guiGridListSetItemText ( List, row, column, text, false, false ) local rowCount = guiGridListGetRowCount (List) guiGridListSetHorizontalScrollPosition( List, rowCount ) end function createList () local List = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( List, "Infos", 0.85 ) if ( column ) then addText(List, column, "Test") addText(List, column, "Test") addText(List, column, "Test") addText(List, column, "Test") addText(List, column, "Test") addText(List, column, "Test") addText(List, column, "Test") end end just a sample of my problem
  18. Okey when i`m at home ill post my problem script but i think my description of the problem must be enough to know what the problem is or not?
  19. https://wiki.multitheftauto.com/wiki/SetGameSpeed Clientside
  20. Hey Guys, I made a simple GUI with an Gridlist. The Gridlist has just one Coloumn. With a commandhandler i add some rows in this coloumn. This works fine but i want to scoll automaticly to the last row... I tested the guiGridListSetHorizontalScrollPosition and the guiGridListSetVerticalScrollPosition but it wont work... I got the last Index by counting all rows with GuiGridListGetRowCount. Pleas help A Example would be nice
  21. I think there is a server trigger event needed can you write me what I have to write in the server.lua and what into the gui.lua??
  22. Hey Guys I have a big Problem! In my script there is a GUI which I can open but there i made a row called Wanteds and Spieler which means the Player. So I made that in the Player row the Playername will be and in the Wanted row the wanteds of the Player but this is not working every number in the row Wanted shows only my current wanted by every player. I dont understand this Pleas help GUIEditor_Window = {} blipState = false user1 = {"Schlammy","TheGamer"} _setPlayerWantedLevel = setPlayerWantedLevel function isValidPlayer() local playerName = getPlayerName(localPlayer) for index, value in ipairs(user1) do if value == playerName then return true end end return false end -- HIER -- --[[ function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitPlayer) local derzombie = getElementData if getElement (source, "zombie") then killPed ("zombie") end -- Add this as a handler so that the function will be triggered every time a player fires. addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) -- HIER ]]-- function gui() GUIEditor_Window[1] = guiCreateWindow(265,276,340,519,"Navy Seal",false) Label_1_Deine_Auswahl = guiCreateLabel(36,43,125,17,"Deine Auswahl:",false,GUIEditor_Window[1]) Button1_Agent_on = guiCreateButton(33,65,154,45,"Duty",false,GUIEditor_Window[1]) gridList = guiCreateGridList(33,259,275,238,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(Gridlist, 0) Label_2_Wanted_Liste = guiCreateLabel(114,236,144,21,"Wanted Liste",false,GUIEditor_Window[1]) Button2_Agent_off = guiCreateButton(33,116,154,45,"Off Duty",false,GUIEditor_Window[1]) guiGridListAddColumn(gridList, "Spielername", 0.7) guiGridListAddColumn(gridList, "Wanted", 0.2) addEventHandler("onClientGUIClick", Button1_Agent_on, speichern) addEventHandler("onClientGUIDoubleClick", gridList, showPositionAtMap, false) addEventHandler("onClientGUIClick", Button2_Agent_off, ausgeben) guiSetVisible(GUIEditor_Window[1], false) end function handle() if isValidPlayer() then if GUIEditor_Window[1] == nil then gui() end if GUIEditor_Window[1] ~= nil then guiSetVisible(GUIEditor_Window[1], true) guiGridListClear(gridList) showCursor(true) for index, spieler in pairs(getElementsByType("player")) do local row = guiGridListAddRow(gridList) guiGridListSetItemText(gridList, row, 1, getPlayerName(spieler), false, false) guiGridListSetItemText(gridList, row, 2, tonumber(getPlayerWantedLevel(spieler)), false, false) end end end end bindKey ("num_1", "down", handle) function speichern(button,state) if button == "left" and state == "up" then triggerServerEvent("saveWeapons", root) dername = getPlayerName(getLocalPlayer()) Skin = getElementModel(getLocalPlayer()) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end function ausgeben(button,state) if button == "left" and state == "up" then triggerServerEvent("regiveWeapons", root, Skin, dername) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end function showPositionAtMap(button, state) if button == "left" and state == "up" then if blipState == false then local name = guiGridListGetItemText(gridList, guiGridListGetSelectedItem(gridList), 1) local player = getPlayerFromName(name) if player then local px, py, pz = getElementPosition(player) blip = createBlipAttachedTo(player,56) blipState = true end else destroyElement(blip) blipState = false end end end function setPlayerWantedLevel(player, level) local name = getPlayerName(player) setPlayerNametagText(player, name.."("..level..")") return _setPlayerWantedLevel(player, level) end function beenden(player) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end addCommandHandler("endgui", beenden)
×
×
  • Create New...