Jump to content

HunT

Retired Staff
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by HunT

  1. To : http://pastebin.com/0rAUtcgs Copia tutto e Pastalo in dxscoreboard_client.lua La script deve funzionare se non tocchi nulla,se non escono nomi o bandiere vuol dire che devi aggiungerle tu a mano come ti ho detto prima.
  2. HunT

    [REL] Killcam

    Nice Gus Why no make a dx image with projectile?
  3. addEventHandler('onClientResourceStart', resourceRoot, function() createObject (id object ,x,y,z,rx,ry,rz) setTimer ( customObject, 200, 1) end ) function customObject () local txd = engineLoadTXD engineImportTXD(txd, id) local dff = engineLoadDFF engineReplaceModel(dff, id) local col = engineLoadCOL engineReplaceCOL(col, id) engineSetModelLODDistance(id, 1000) end For Problem post here the id object and coordinate.
  4. Ti avevo detto di postare il dxscoreboard con pastebin in caso di problemi. La mia script funziona e basta,se un fottuto turco entra e ha la bandiera italiana vuol dire che nel admin panel non ce la bandiera turca.Devi aggiungerla tu ed aggiungere nella mia script TK = Turkey = zingaro.
  5. Non ti offendere Phrenetiick ma i comandi che hai citato non hanno alcun senso. /stop deathlist e /stop killmessages ------------------------------------------------------------------------------------------------ Shift prima si parlava di killmessages e non di rankinboard. Killmessages a destra (e abbiamo risolto giusto? ) Rankingboard e quello a sinistra. Come puoi veder sono due script differenti,se hai una script a parte e vuoi togliere l originale devi fare questo che ti dico. Purtroppo il rankingboard non puoi ne eliminarlo e ne stopparlo,ti tocca editarlo. Apri rankinboard_client.lua questa e l originale : ( è l'ultima funzione sotto) function createShadowedLabelFromSpare(x, y, width, height, text, align) if #spareElems < 2 then if not donePrecreate then outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) end return createShadowedLabel(x, y, width, height, text, align) else local shadow = table.popLast( spareElems ) guiSetSize(shadow, width, height, false) guiSetText(shadow, text) --guiLabelSetColor(shadow, 0, 0, 0) guiSetPosition(shadow, x + 1, y + 1, false) guiSetVisible(shadow, true) local label = table.popLast( spareElems ) guiSetSize(label, width, height, false) guiSetText(label, text) --guiLabelSetColor(label, 255, 255, 255) guiSetPosition(label, x, y, false) guiSetVisible(label, true) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) else guiLabelSetHorizontalAlign(shadow, 'left') guiLabelSetHorizontalAlign(label, 'left') end return label, shadow end end bene, aggiungici questo --[[ ]]-- ecco come : (in modo da non farla funzionare,non eliminandola) --[[function createShadowedLabelFromSpare(x, y, width, height, text, align) if #spareElems < 2 then if not donePrecreate then outputDebug( 'OPTIMIZATION', 'createShadowedLabel' ) end return createShadowedLabel(x, y, width, height, text, align) else local shadow = table.popLast( spareElems ) guiSetSize(shadow, width, height, false) guiSetText(shadow, text) --guiLabelSetColor(shadow, 0, 0, 0) guiSetPosition(shadow, x + 1, y + 1, false) guiSetVisible(shadow, true) local label = table.popLast( spareElems ) guiSetSize(label, width, height, false) guiSetText(label, text) --guiLabelSetColor(label, 255, 255, 255) guiSetPosition(label, x, y, false) guiSetVisible(label, true) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) else guiLabelSetHorizontalAlign(shadow, 'left') guiLabelSetHorizontalAlign(label, 'left') end return label, shadow end end]]-- Prova.
  6. La directory può darsi pure che sia giusta,ma la script è fallata. Quasi sicuramente non hai editato il dxscoreboard (senza il quasi ) Cmq ecco la mia script per il country. Server side : Devi aggiungere questa stringa in dxscoreboard_client.lua 1 : apri con notepad il file dxscoreboard_client.lua 2 : cerca local partOfName una volta trovata la stringa vai alla fine della funzione end ed aggiungi questo : elseif column.name == "Pic" then column.width = 20 dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) else Se fai tutto bene dovrebbe uscire sia il nome del paese che la bandiera. Tieni presente che nel host game non funziona,funziona solo nel server vero. Se hai problemi posta il dxscoreboard con pastebin e te lo fixo.
  7. Puo darsi Cmq se hai un killmessages a parte devi stoppate il killmessages originale. Non avendo mta a disposizione ora vado ad occhio. Controlla nel meta.xml del race se c'e 'include resource killmessages' o roba simile, ed elimini la stringa. Controlla anche nel mtaserver.conf se c'e la stringa giù nelle risorse e toglila.
  8. 1: se magari ci dici il debugscript o cosa hai modificato. 2: l evento è onPlayerPickUpRacePickup server side
  9. HunT

    [Solved] Mini Slot

    True Maybe with dx function. Googleator = true Later and tnx
  10. Hi all. I want make the mini game in new user panel but the wiki no help me. (never help ) Fine, First i need info about guiSetProperty rotation and guiGetProperty rotation from image element. Cegui and wiki no help. Tnx.
  11. HunT

    boom

    Prova questo di shokkino, senó aspetta domani che ho il Mac a disposizione e ti do la script.
  12. Se l oggetto in questione viene usato e quindi ha una collisione propria,vuol dire che e stato fatto con 3Ds max. Se invece l oggetto e default di MTA e viene usato solo come decorazione,allora è una script molto semplice. Fai : mioOggetto = createObject ( id oggetto ed il resto) setObjectScale ( mioOggetto, 2) -- il value normale è 1 Come già detto sopra se usi setObjectScale la collisione non si modifica,resta quella originale. Siamo qui per altre info
  13. Why tostring? Maybe tonumber is better
  14. Ci vuole una bella script In realtà la script che sto per passarti è un control point con dei comandi,molto semplice da usare. /cp /tp /resp il /cp registra la posizione la velocità e lo stato del nos. il /tp ti teleporta sul punto registrato dal /cp e ti setta la velocità e il nos. /resp credo che non ti serva perché se premi /resp ti respawna all inizio della mappa. Puoi usare questi comandi con il bind,al limite se hai un forum fai un post per la spiegazione per i tuoi amici/membri. in chat fai: /bind c cp /bind t tp Come usarlo : Quando sei arrivato ad un punto della mappa e vedi una parte molto difficile dici . . . o merda!! qui e meglio fare un check point,e quindi premi il tasto C per attivare il comando /cp. Quando vai ad affrontare questa parte difficile della mappa e fai un mega fail,prima di morire premi il tasto T che attiva il comando /tp e ti teleporta al check point creato settandoti tutto,sia posizione velocità e nos. Puoi scaricare la script qui : http://fotl-clan.ru/index.php?topic=44516.0 La script l ha fatta il mio amico renkon. Se hai problemi per scaricarlo dimmelo che te lo metto su mediafire.
  15. WTF??? Serial N/A ? Maybe the Ip is n/a (maybe) . . . Check the server log, copy the serial and ban him for ever.
  16. ShockZ perché dice sciokkinate? Puoi farlo con engineSetModelLODDistance, dagli un value 2000. Tipo: engineSetModelLODDistance ( id oggetto, 2000)
  17. Anche per il font deve aggiungere type='client'
  18. Se invece vuoi usare un font defaul di mta e ancora più semplice,a occhio credo che il font del nome della mappa è default-bold-small quindi : -- sostituisci guiSetFont( guiFPSLabel, ilFont ) con guiSetFont( guiFPSLabel, "default-bold-small") -- force e meglio crearlo il font perche puoi gestire la grandezza
  19. Certo Certosino Mettiamo caso che il font in questione si chiami mioFont.ttf (non usare font complicati o che pesino troppo altrimenti lagga) FPSLimit = 52 FPSMax = 1 ilFont = guiCreateFont( "mioFont.ttf", 10) -- 10 è il size,prova 10 se è piccolo il testo fai 15 se è grande fai 5 etc.. function onClientResourceStart ( resource ) if ( guiFPSLabel == nil ) then FPSLimit = 255 / FPSLimit guiFPSLabel = guiCreateLabel ( 0.03, 0.97, 0.1, 0.1, "FPS: 0", true ) guiSetFont( guiFPSLabel, ilFont ) -- come puoi vedere abbiamo settato il font alla label FPSCalc = 0 FPSTime = getTickCount() + 1000 addEventHandler ( "onClientRender", getRootElement (), onClientRender ) end end addEventHandler ( "onClientResourceStart", getRootElement (), onClientResourceStart ) function onClientRender ( ) if ( getTickCount() < FPSTime ) then FPSCalc = FPSCalc + 1 else if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end guiSetText ( guiFPSLabel, "FPS: "..FPSCalc..) -- e qui abbiamo rimosso il max fps guiLabelSetColor ( guiFPSLabel, 255 - math.ceil ( FPSCalc * FPSLimit ), math.ceil ( FPSCalc * FPSLimit ), 0 ) FPSCalc = 0 FPSTime = getTickCount() + 1000 end end Purtroppo non posso testare nulla,testa e fammi sapere.
  20. Fai semplicemente una file tipo news.lua e in meta.xml ci metti script src news.lua type client. Per il tempo basta cambiare i numeri, ora è 30000 = 30 secondi se la matematica non è un opinione 50000 = sono 50 secondi. Se hai altri problemi posta qui i messaggi e il tempo.
  21. aggiungi questo : -- il gruppo <group name="Staff"> <acl name="Staff"></acl> <object name="resource.*"></object> -- qui aggiungi i membri </group> -- ed ora l ACL dei permessi <acl name="Staff"> -- qui puoi aggiungere i permessi ad esempio vedi sotto : il gruppo Staff ha l'accesso al comando kick <right name="command.kick" access="true"></right> </acl> Per l fps usa questo https://community.multitheftauto.com/ind ... tails&id=7
  22. Molto semplice. Server Side or Client Side è uguale (meglio server side ) --Prima di tutto il table con i testi. local messaggi = { "primo msg", "secondo msg", "terzo msg", "e credo che hai capito", } -- puoi aggiungere il colore al testo Hex tipo #FFFFFF = bianco etc.. esempio : "#FFFFFF primo msg", testo bianco in chat. setTimer ( function () local msgRandom = math.random ( #messaggi) -- in pratica prende un msg dal table a caso local ilMessaggio = messaggi[msgRandom] -- questo è il messaggio scelto da msgRandom outputChatBox ( ilMessaggio, getRootElement(), 255, 0, 0, true ) -- in fine l' output con il msg chiamato end ,30000, 0 ) -- 30000 vuol dire che ogni msg compare ogni 30 secondi se hai problemi siamo qui.
  23. For Custom objects maybe the createObject is better. 1 - Remove the object in .map 2 - Try This : addEventHandler('onClientResourceStart', resourceRoot, function() createObject ( 4828, 1481, -2300.1999511719, 12.5, 0, 0, 0 ) outputChatBox ( "Dawar Al-Lulu is started") local txd = engineLoadTXD('files/lasairprt5.txd',true) engineImportTXD(txd, 4828) local dff = engineLoadDFF('files/lasairprt5.dff', 0) engineReplaceModel(dff, 4828) local col = engineLoadCOL('files/lasairprt5.col') engineReplaceCOL(col, 4828) engineSetModelLODDistance(4828, 500) end ) or addEventHandler('onClientResourceStart', resourceRoot, function() createObject ( 4828, 1481, -2300.1999511719, 12.5, 0, 0, 0 ) outputChatBox ( "Dawar Al-Lulu is started") setTimer ( customObject, 200, 1) end ) function customObject () local txd = engineLoadTXD('files/lasairprt5.txd',true) engineImportTXD(txd, 4828) local dff = engineLoadDFF('files/lasairprt5.dff', 0) engineReplaceModel(dff, 4828) local col = engineLoadCOL('files/lasairprt5.col') engineReplaceCOL(col, 4828) engineSetModelLODDistance(4828, 500) end
×
×
  • Create New...