Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-05-01, 15:46


DxPelikan5







Wiek: 27
Na forum: 3323 dni
Posty: 9



Respekt: 50

addCommandHandler("me", function(plrcmdname, ...)
     if not ... then outputChatBox("* Uzycie: /me [tekst]"plr)
              else
        local text table.concat({...}, " ")
        local x,y,getElementPosition(plr)
        local cs createColSphere(xyz25)
        local name getPlayerName(plr)
        --local id getElementData(plr"UID")
        local msg string.gsub(msg"#%x%x%x%x%x%x""")
        
        for i,v in ipairs(getElementsWithinColShape(cs)) do
            if getElementInterior(v) == getElementInterior(plr) and getElementDimension(v) == getElementDimension(plrthen
                outputChatBox("** "..name.." ".. textv142142255true)
            end
        end
        destroyElement(cs)
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-01, 16:06


neku^







Wiek: 24
Na forum: 3522 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


addCommandHandler("me", function(plrcmdname, ...)
     if not ... then outputChatBox("* Uzycie: /me [tekst]"plr)
              else
        local text table.concat({...}, " ")
        local x,y,getElementPosition(plr)
        local cs createColSphere(xyz25)
        local name getPlayerName(plr)

        for i,v in ipairs(getElementsWithinColShape(cs)) do
            if getElementInterior(v) == getElementInterior(plr) and getElementDimension(v) == getElementDimension(plrthen
                outputChatBox("** "..name.." ".. textv142142255true)
            end
        end
        destroyElement(cs)
end
end)


Jak teraz nie zadzia?a to ja ju? nie wiem. Mo?e jakie? db3 wyst?puje? U mnie wszystko elegancko ?miga.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-01, 16:33


DxPelikan5







Wiek: 27
Na forum: 3323 dni
Posty: 9



Respekt: 50

Po zmianie komendy wszystko ?miga ok, mo?e jednak trzeba zablokowa? oryginaln? komend??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-01, 16:35


neku^







Wiek: 24
Na forum: 3522 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Lul, poszukaj tej komendy i po prostu ja wykomentuj zapewne jest w zasobie freeroam, ale tego pewny nie jestem. Komentarz robisz w taki spos?b:
--[[ kod bla blablabla bla
Blablabla
Blablabla
Blablabla
Blablabla ]]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-01, 17:59


DxPelikan5







Wiek: 27
Na forum: 3323 dni
Posty: 9



Respekt: 50

 function onChat(wiadtyp)
      if typ == 1 then
      cancelEvent()
      outputChatBox("* "..getPlayerName(source).." "..wiadgetRootElement(), 1678139true)
     end
end
addEventHandler("onPlayerChat"getRootElement(), onChat)
Da si? z tego zrobi? lokalne me? testowa?em to i to akurat dzia?a lecz jest globalne.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-01, 18:44


neku^







Wiek: 24
Na forum: 3522 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Da si? :)

function onChat(typ, ...)
if typ == 1 then
                cancelEvent()
        local x,y,getElementPosition(source)
        local cs createColSphere(xyz25)
        local name getPlayerName(source)
        local wiad table.concat({...}, " ")

        for i,v in ipairs(getElementsWithinColShape(cs)) do
            if getElementInterior(v) == getElementInterior(source) and getElementDimension(v) == getElementDimension(sourcethen
                outputChatBox("* "..name.." "..wiadv142142255true)
            end
        end

        destroyElement(cs)
    end
addEventHandler("onPlayerChat"rootonChat)

O ile si? nie myl? ten skrypt powinien dzia?a? dobrze 🤔

Na poczatku podajesz typ czyli 1, a p??niej tekst.

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
DxPelikan5
Wysłany: 2017-05-05, 18:09


Przemox







Wiek: 28
Na forum: 3319 dni
Posty: 25
Nick w MP: Przemox



Respekt: 45,3

Ostrzeżeń: 100%
Witam ma kto? fajn? paczk? do serwera MTA? Opr?cz Shared Game?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 18:14


Dexnes_

Tiger






Wiek: 26
Na forum: 4402 dni
Posty: 620
Nick w MP: Dexnes

Piwa: 1394

Respekt: 390
Respekt: 390Respekt: 390Respekt: 390Respekt: 390

Przemox, Wejd? w dzia? "SPIS SKRYPT?W I MAP DO MTA:SA" tam jest ciekawa lista Gamemod?w , na pewno co? wybierzesz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-11, 22:56


koj155







Wiek: 42
Na forum: 4823 dni
Posty: 3
Nick w MP: Speed



Respekt: 50

Szukam skryptu na Towary prosz? o pomoc

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-12, 11:35


MagiK.

Lua :-)






Wiek: 26
Na forum: 3441 dni
Posty: 102

Piwa: 391

Respekt: 35,8

Jakie towary? Opisz

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-12, 15:10


MartinPanZycia

Zielony w LUA






Wiek: 27
Na forum: 3729 dni
Posty: 476
Nick w MP: Rodzaje

Piwa: 878

Respekt: 70,5

Ostrzeżeń: 40%
Towary takie legalne i nielegalne czyl iprzemyt jak z TPR v1

Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-13, 18:19


Limitowany1999







Wiek: 27
Na forum: 4087 dni
Posty: 9
Nick w MP: Limitowany1999



Respekt: 70

Witam, potrzebuje banalnego skryptu, do tego aby po restarcie b?d? wy??czeniu serwera odpali?y si? automatycznie skrypty

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-13, 19:17


JoKeR7026







Wiek: 29
Na forum: 3478 dni
Posty: 6



Respekt: 50

Losowy respawn pojazdu kto? ma taki skrypt?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-13, 19:32


Barcioo

Kiedyś to było ST






Wiek: 26
Na forum: 4049 dni
Posty: 458
Nick w MP: Bartek.

Piwa: 1887

Respekt: 460
Respekt: 460



pojazdy = {
  {400},
  {401},
  {402},
  {403},
  {404},
  {405},
  {409},
  {410},
  {411},
  {412},
  {413},
  {414},
  {415},
  {418},
  {419},
  {420},
  {421},
  {422},

}



--getVehicleModelFromName carName )
function vehlos(plr)
    if getElementType(plr) =="player" then
    pojazd math.random(0,#pojazdy)
        local x,y,getElementPosition(plr)
     veh createVehicle(pojazd,x,y,z+2)


 end
end



addCommandHandler('autoresp',vehlos)



Podpis
Kanał Youtube;
A tu zapraszam
, pomogłem Ci? Wynagrodź mnie :piwo: :)


SUPPORT TEAM- 2016-09-03 do 2018-05-25
Test Mod- 2018-05-25
1k dni na Forum - 2018-01-28


GG: 62111935
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-19, 10:11


MartinPanZycia

Zielony w LUA






Wiek: 27
Na forum: 3729 dni
Posty: 476
Nick w MP: Rodzaje

Piwa: 878

Respekt: 70,5

Ostrzeżeń: 40%
Szukam skryptu ,?e jak sie wejdzie w marker to si? brama otwiera

Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Postaw piwo autorowi tego posta
 

 
Tagi: szukam :: skryptu/modelu :: mta
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zasoby do MTA » SZUKAM SKRYPTU/MODELU - MTA Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku