Jump to content

HunT

Retired Staff
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by HunT

  1. 1. U no are the scripter. 2. The Original Resource Is Here : https://community.multitheftauto.com/index.php?p= ... ls&id=2215 3. Stop Edit The Resource From Other People. 4. Idk why the admin no ban u here and community.
  2. HunT

    [help] xmlSaveFile

    The problem is the output code . . .OA,OA wtOA is this?
  3. HunT

    [help] xmlSaveFile

    Other Problem With XML My Problem Now is The "OutPut Code" The script Work Fine: elseif (source == mapbott7) then -- Botton for create xml local exportDate = guiGetText(myEdit) -- get the text from the edit local exportText = guiGetText(myMemo) -- get the text from the memo local metaNode = xmlCreateFile(exportDate ..".xml",exportDate) -- crate the file and root with the text from edit if (metaNode) then xmlNodeSetValue(metaNode, exportText) -- set the value (text) with text from memo xmlSaveFile ( metaNode ) xmlUnloadFile ( metaNode ) image : XML : <21-03-2012>ACCEPTED :1: BADlands BLASTAround race-badlandsblastaroundDECLINED :</21-03-2012> ????? Tnx for help
  4. HunT

    [help] xmlSaveFile

    Omg xml Stress me For export the map list i have : mapEdit = guiCreateEdit(140,339,117,26,"date xml",false,MemoPanel) elseif (source == mapbott7) then -- botton for create xml with name from edit exportDate = guiGetText(mapEdit) exportText = guiGetText(myMemo) local FinalText = xmlCreateFile(exportDate,exportText) xmlSaveFile ( FinalText ) xmlUnloadFile ( FinalText ) Work Fine but the name file is not .xml
  5. HunT

    [help] xmlSaveFile

    Oh yep work fine elseif (source == mapbott2) then memo () LoadText() guiSetInputEnabled ( true) elseif (source == mapbott6) then SaveText() guiSetInputEnabled ( false ) Tnx Again
  6. HunT

    [help] xmlSaveFile

    Work Tnx Other Question. Why in memo with key p open the admin panel? t show the cursor for chat . . .y etc. is impossible to write PAPPATAPA in memo why open 4 times the admin panel and 2 times the cursor
  7. Where Wrong ? (first time with xml) function memo () myMemo = guiCreateMemo(19,58,360,275,"",false,MemoPanel) --------------------------------------------------------------------------- elseif (source == mapbott2) then -- botton open memo memo () -- work LoadText() -- work elseif (source == mapbott6) then -- botton close memo SaveText() -- work function LoadText() local mapText = xmlLoadFile("img/maptest.xml") if (mapText) then local value = xmlNodeGetValue(mapText) guiSetText(myMemo, value) end end function SaveText() xmlNodeSetValue(mapText, guiGetText(myMemo)) -- debug error xmlSaveFile(mapText) -- debug error xmlUnloadFile(mapText) -- debug error end Tnx.
  8. No work why "onMapStarting" the player is not in vehicle. "onPlayerVehicleEnter" is good but with (theVehicle, seat, jacked ) Type : function zaa(theVehicle, seat, jacked ) for index, player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam (player) then local r, b, g = getTeamColor ( getPlayerTeam ( player) ) -- Lua is case sensetive. local araba = getPedOccupiedVehicle ( player ) if araba then setVehicleColor ( araba, r,g,b,r,g,b) end end end end addEventHandler("onPlayerVehicleEnter",getRootElement(),zaa)
  9. thanks but dont work at map starting. i know i have to use setTimer. but how can i make worked that without setTimer? Add this : addEvent("onMapStarting",true) Type : addEvent("onMapStarting",true) function zaa() for index, player in ipairs ( getElementsByType ( "player" ) ) do if getPlayerTeam (player) then local r, b, g = getTeamColor ( getPlayerTeam ( player) ) -- Lua is case sensetive. local araba = getPedOccupiedVehicle ( player ) if araba then setVehicleColor ( araba, r,g,b,r,g,b) end end end end addEventHandler("onMapStarting",getRootElement(),zaa)
  10. Usa questo : https://community.multitheftauto.com/ind ... ls&id=2833 aggiungi i tag e i colori. example : local names ={"Admin Team","Player's"} -- il nome che appare nel scoreboard local tags ={"%|AT%|","%[PT%]"} -- il tag che server per funzionare tipo "%DD%C" per DDC tag local colors ={"#fffafa","#ff0000"} -- il colore hex local acls={"Admin","none"} -- accesso per il tag,nel tuo caso devi mettere none per i clan ospiti.
  11. Try This : Ho aggiunto anche un blip nella mappa con la lettera T (Trailer) function creaUnMarker () rimorchio = createMarker( 2776, -2474.5,13.6,"ring",3, 0, 255, 0, 255 ) createBlip ( 2776, -2474.5,13.6 , 42, 0.5 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), creaUnMarker) setTimer ( creaUnMarker, 3000, 0) addEventHandler("onClientMarkerHit", root, function(player, matchingDimension) if not matchingDimension then return end if player == localPlayer and isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if source == rimorchio then local vehicle = getPedOccupiedVehicle(player) if ( getElementModel ( vehicle ) == 515 ) then local x, y, z = getElementPosition ( vehicle ) rimorchio = createVehicle ( 435, x, y, z) attachTrailerToVehicle (vehicle, rimorchio) outputChatBox ( "You attached the trailer", getRootElement(), 0, 255, 0 ) elseif source == rimorchio then local vehicle = getPedOccupiedVehicle(player) if ( getElementModel ( vehicle ) == 403 ) then local x, y, z = getElementPosition ( vehicle ) rimorchio = createVehicle ( 435, x, y, z) attachTrailerToVehicle (vehicle, rimorchio) outputChatBox ( "You attached the trailer", getRootElement(), 0, 255, 0 ) end end end end end )
  12. Eccolo : (puoi editare tutto se vuoi,l'ho testato) client - side function creaUnMarker () rimorchio = createMarker( 2776, -2474.5,13.6,"ring",3, 0, 255, 0, 255 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), creaUnMarker) setTimer ( creaUnMarker, 2000, 0) addEventHandler("onClientMarkerHit", root, function(player, matchingDimension) if not matchingDimension then return end if player == localPlayer and isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if source == rimorchio then local vehicle = getPedOccupiedVehicle(player) if ( getElementModel ( vehicle ) == 515 ) then local x, y, z = getElementPosition ( vehicle ) rimorchio = createVehicle ( 435, x, y, z) attachTrailerToVehicle (vehicle, rimorchio) outputChatBox ( "il Rimorchio è Collegato", getRootElement(), 0, 255, 0 ) elseif source == rimorchio then local vehicle = getPedOccupiedVehicle(player) if ( getElementModel ( vehicle ) == 403 ) then local x, y, z = getElementPosition ( vehicle ) rimorchio = createVehicle ( 435, x, y, z) attachTrailerToVehicle (vehicle, rimorchio) outputChatBox ( "il Rimorchio è Collegato", getRootElement(), 0, 255, 0 ) end end end end end ) Se hai problemi posta qui
  13. Certo che si puo fare. In pratica devi creare un marker che attacca il rimorchio al camion (solo ad un determinato id) else outputchat "non hai il veicolo giusto". quindi : 1. createMarker 2. la funzione 3. vehicle = getPedOccupiedVehicle(me) if (getElementModel(vehicle)) ~= "l'id del veicolo" (in pratica se non hai questo veicolo la funzione non parte 4. l'evento "onClientMarkerHit" Bhe cmq è inutile spiegare tutto,dimmi l'id del camion l'id del rimorchio e le coordinate per il marker
  14. Si ma se non sei in grado di aiutare qualcuno è inutile atteggiarsi con "non ci vuole un genio per fare sto script".Certo che non ci vuole un genio ma tu CANT MAKE THIS. Cmq rimanendo in tema puoi usare questo : https://community.multitheftauto.com/index.php?p= ... ls&id=1678 Funziona con i comandi, quindi fai /bind "key" fix "tuo nome" tipo /bind 1 fix hunterix (premendo il tasto 1 mi fixa).
  15. Per il nos puoi usare la mia ultima risorsa,fatta proprio per il nos. https://community.multitheftauto.com/index.php?p= ... ls&id=3972 Se hai bisogno di aiuto per le altre script fammi sapere. Posso aggiungere anche un tasto per il random color nitro se vuoi.
  16. Oh yep!! Forget.But I use only nitro.fx from the resource Tnx benox.
  17. St3reo Nitro Panel by ST3REO aka Hunterix images : video : Nice Gui interface Low download 48kb Animation Nitro enable Nitro disable Set Color Nitro Open The Panel with key N Without credit (only the st3reo script label) Download Here : https://community.multitheftauto.com/index.php?p= ... ls&id=3972 Enjoy
  18. Ma che fai parli criptato? usi il compiler per parlare? Cmq quello che ti serve per la terza domanda è il race_ghost per DM questo : https://community.multitheftauto.com/index.php?p= ... ls&id=3799 Se fai una ricerca trovi tutto visto è considerato che gli EPD non hanno uno scripter e tutte le script le hanno trovate o fregate Per la terza hai risolto,ti serve il race_ghost DM.Ora posta qui la script del nos e la editiamo,e facci sapere per il countdown cosa intendi.
  19. Aiuterete? . . . Ma certo che ti aiutiamo A parte che non credo si dica aiuterete. Purtroppo non capisco alcune cose che dici Per il countdown non mi è chiaro se vuoi editare il countdown iniziale (ovvero quando parte una mappa), o vuoi un countdown da lanciare tramite comando.In entrambi i casi posso aiutarti (is easy). Se vuoi editare il countdown iniziale devi editare prima di tutto queste stringe in race_server.lua iniziando dalla stringa 362 queste : g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) in pratica devi togliere playSoundFrontEnd (ovvero i suoni originali) e fare una script per il nuovo countdown,usando nuovi suoni o voci. Prima di armeggiare però vorrei sapere cosa intendi dire. Per quanto riguarda il nos con il colore random te lo sconsiglio perchè lagga da bestia.Se ne hai proprio bisogno posta qui la script originale del nos e la editiamo. La terza domanda non l'ho capita
  20. Epic Map Gus,i now look this video.Maybe the title is "Needed Luck" for finish this map Rate 10/10 and good luck for server.
  21. U can use the cpicker by aibo for car color and light . here : https://community.multitheftauto.com/index.php?p= ... ls&id=3247
×
×
  • Create New...