Jump to content

HunT

Retired Staff
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by HunT

  1. Perche trolface shokkino? Io gli ho detto dov'e l errore spetta a loro fixarlo
  2. Dubito fortemente che l'avete fatto voi Cmq ecco l'errore (io lo chiamerei FAIL) addEventHandler ("onPlayerJoin",getRootElement(), function() then local serial = getPlayerSerial(source) -- User Panel function GetInfo(g_player) --questo non c'entra niente perche la funzione e sopra local source = g_player local ip = getPlayerIP(source) local serial = getPlayerSerial(source) --idem Elimina quello che ho segnato e chiudi al funzione con : ) Se avete fatto tutto questo credo sia facile ora fixarlo
  3. quando riporta questo "\server.lua:358: unexpected symbol near then" vuol dire che o hai messo troppi end o pochi end, dipende dagli if posta la funzione e fai
  4. domani ci faccio un salto
  5. Dovresti editare la risorsa originale,cambiando o il spawn o fare una base per il respawn. Come si chiam ail server mi faccio un salto,non ho mai giocato a zombie mode
  6. E sto a gioca a MW3 Fra 20 minuti mi collego.
  7. Ti ho detto che non devi iniziare con qualcosa difficile Stai facendo il passo più lungo della gamba. Fai un pannello normale per iniziare e portalo finito funzionante con tutte le funzioni server-side
  8. devi usare un altro tipo di evento. "onClientMouseEnter" "onClientMouseLeave" Fai il bottone e ci setti l 'alpha 0 (trasparente) E sopra fai l imagine.
  9. è molto strano. Prima di tutto disinstalla mta e reinstallalo,poi scarica le risorse dal link che ti ho dato ed estrai i file nella cartella server/resource. Deve funzionare per forza.
  10. .gIF nO gOOD Devi usare .png E poi creatBotton con l'immagine non è plausibile
  11. Bhe prima di tutto devi capire che il guieditor ti da solo la posizione degli oggetti,non ti fa il lavoro completo. Cmq iniziamo a fixare sia la risoluzione dello schermo e l apertura del pannello. Faccio tutto e riporto le info con -- affianco open = 0 function box() if open==0 then open = 1 showCursor(true) --questo ti mostro il cursore del mouse con true local x,y = guiGetScreenSize() local width,height = 526,377 -- forse 526 x 377 è un pò eccessivo -.- è al dimensione del pannello x = x-width y = (y-height)/2 -- con queste misure hai il pannello centro destra -- Gui Element -- miaFinestra = guiCreateWindow(x,y,width,height,"User Panel",false) mioTavolo = guiCreateTabPanel(9,21,508,20,false, miaFinestra) tavolo1 = guiCreateTab("Welcome", mioTavolo) tavolo2 = guiCreateTab("Shop#1", mioTavolo) tavolo3 = guiCreateTab("Shop#2", mioTavolo) tavolo4 = guiCreateTab("Shop#3", mioTavolo) elseif open==1 then open = 0 destroyElement(miaFinestra) -- chiude la finestra generale,automaticamente elimina tutto. showCursor(false) -- come da testo,rimuove il cursore. end end open = 0 bindKey("F1", "up", box) -- Puoi cambiare il tasto F1 con F2 F3 F quello che ti pare Bene ora puoi creare una script client side e provarlo. Worka rilassati una volta creato i bottoni devi usare gli eventi function QuandoClicchi (button, state, absoluteX, absoluteY) if (source == "qui ci va il nome del bottone") then -- esempio if (source == bottone1) then -- qui la funzione -- elseif (source == "nome bottone successivo") then -- esempio if (source == bottone2) then -- qui la seconda funzione -- end end addEventHandler ("onClientGUIClick", getRootElement(), QuandoClicchi) per i bottoni devi usare tipo : botton1 = guiCreateButton(posizione x ,posizione y,altezza x,langhezza y,"nome bottone",false,mioTavolo) Sono qui per ulteriori dubbi,la script sopra puoi testarla. 526 x 377 forse e troppo grande shok
  12. You Are Epic Castillo Work Fine Tnx
  13. Hi All. I need help for make the personal color rankingboard from colorPicker. The player Can Select the color for rankingboard . . . But No work This is without r,g,b from db local label = table.popLast( spareElems ) myFonte = guiCreateFont( "img/prof.ttf", 10) guiSetSize(label, width, height, false) guiSetFont(label,myFonte) guiSetText(label, text) guiLabelSetColor(label, 255, 200, 0) -- Now is yellow guiSetPosition(label, x, y+6, false) guiSetVisible(label, true) Uploaded with ImageShack.us This is with r,g,b local r = tonumber(getElementData(player,"Acolor1")) local g = tonumber(getElementData(player,"Acolor2")) local b = tonumber(getElementData(player,"Acolor3")) local label = table.popLast( spareElems ) myFonte = guiCreateFont( "img/prof.ttf", 10) guiSetSize(label, width, height, false) guiSetFont(label,myFonte) guiSetText(label, text) guiLabelSetColor(label, r, g, b) -- Now with r,g,b guiSetPosition(label, x, y+6, false) guiSetVisible(label, true) debugscript 3 report : bad argument on getElementData element 1 (maybe the player but i test with source . . nothing) Where is The Problem? Tnx
  14. Strano Hai aggiunto la definizione race? se non risolti posta qui il meta e i nomi dei file
  15. Yep i have dp 1,wait i search in database.
  16. Look this for example XML https://community.multitheftauto.com/index.php?p= ... ls&id=2585 u need the XML for what? why no use the Gui element?
  17. Prima di tutto Scarica le ultime risorse qui : http://code.google.com/p/mtasa-resource ... bel:Latest è probabile che il map editor sia buggato (capita spesso) scarica il file .zip mettilo in server/resources ed estrai e sostituisci tutto. Riprova a facci sapare,ti garantisco che funzionerà.
  18. remove the directory in .zip Example : .zip/files = ok .zip/directory/files = fail
  19. Prima di tutto non ti e chiaro il setTimer. Il setTimer non server per settare il tempo di una partita,ma serve per settare il tempo ad una funzione. Ad esempio vuoi far partire una funzione dopo 3 secondi allora "setTimer"nome funzione"3000"0/1" 3000 = 3 secondi 0/1 = loop funzione 0 = niente loop 1 = la funzione gira sempre Per fare questa script dell hunter time hai bisogno di ben altro. Prima di tutto nella script che ti ho dato server-side devi chiamare la funzione "updateTime" tramite trigger . ovvero questa : function updateTime() local tick = getTickCount() local msPassed = tick - g_StartTick if not isPlayerFinished(g_Me) then guiSetText(g_GUI.timepassed, msToTimeStr(msPassed)) end local timeLeft = g_Duration - msPassed guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then startHurry() end end Dopo di che devi settare il comando /random con il setTimer. in piu devi fare la funzione client side dxText o dxImage. Credo di crearla anche io questa script,se attendi che la faccio oppure ora hai tutte le info.
  20. Ok i buy the server 30 days for test,but on start server show this : "The server did not respond to the query, but it is started. Probably there is a problem with the configuration, please fix this problem and try rebooting. When you just started the server, it is also possible that the server needs some startup time."
  21. Sorry For Delay Now test This Host With MTA 1.3 Tnx
  22. Shok non ho avuto tempo per farlo ma vorrei delle info. 1. dove hai visto questa script? 2. nel server dove hai visto questa scritta c'era il random map o il vote manager? se cè il random map e molto semplice farlo,basta settare il comando /random a 3 minuti. se invece cè il vote manager e totalmente diverso. Fammi sapere
  23. prova questi : https://community.multitheftauto.com/index.php?p= ... ls&id=3403 https://community.multitheftauto.com/index.php?p= ... ls&id=2702 https://community.multitheftauto.com/index.php?p= ... ls&id=1844 fammi sapere
  24. Per i "suoni" delle armi basta cercare in community.Credo ci sia una risorsa per questo. Se la trovi puoi aggiungere i suoni che vuoi tu.
×
×
  • Create New...