Wysłany: 2017-05-01, 15:46
DxPelikan5
Wiek: 27 Na forum: 3323 dni Posty: 9
addCommandHandler ( "me" , function( plr , cmdname , ...)
if not ... then outputChatBox ( "* Uzycie: /me [tekst]" , plr )
else
local text = table . concat ({...}, " " )
local x , y , z = getElementPosition ( plr )
local cs = createColSphere ( x , y , z , 25 )
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 ( plr ) then
outputChatBox ( "** " .. name .. " " .. text , v , 142 , 142 , 255 , true )
end
end
destroyElement ( cs )
end
end )
Wysłany: 2017-05-01, 16:06
neku^
Wiek: 24 Na forum: 3522 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
addCommandHandler ( "me" , function( plr , cmdname , ...)
if not ... then outputChatBox ( "* Uzycie: /me [tekst]" , plr )
else
local text = table . concat ({...}, " " )
local x , y , z = getElementPosition ( plr )
local cs = createColSphere ( x , y , z , 25 )
local name = getPlayerName ( plr )
for i , v in ipairs ( getElementsWithinColShape ( cs )) do
if getElementInterior ( v ) == getElementInterior ( plr ) and getElementDimension ( v ) == getElementDimension ( plr ) then
outputChatBox ( "** " .. name .. " " .. text , v , 142 , 142 , 255 , true )
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.
Wysłany: 2017-05-01, 16:33
DxPelikan5
Wiek: 27 Na forum: 3323 dni Posty: 9
Po zmianie komendy wszystko ?miga ok, mo?e jednak trzeba zablokowa? oryginaln? komend??
Wysłany: 2017-05-01, 16:35
neku^
Wiek: 24 Na forum: 3522 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
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 ]]
Wysłany: 2017-05-01, 17:59
DxPelikan5
Wiek: 27 Na forum: 3323 dni Posty: 9
function onChat ( wiad , typ )
if typ == 1 then
cancelEvent ()
outputChatBox ( "* " .. getPlayerName ( source ).. " " .. wiad , getRootElement (), 16 , 78 , 139 , true )
end
end
addEventHandler ( "onPlayerChat" , getRootElement (), onChat ) Da si? z tego zrobi? lokalne me? testowa?em to i to akurat dzia?a lecz jest globalne.
Wysłany: 2017-05-01, 18:44
neku^
Wiek: 24 Na forum: 3522 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
Da si?
function onChat ( typ , ...)
if typ == 1 then
cancelEvent ()
local x , y , z = getElementPosition ( source )
local cs = createColSphere ( x , y , z , 25 )
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 ( source ) then
outputChatBox ( "* " .. name .. " " .. wiad , v , 142 , 142 , 255 , true )
end
end
destroyElement ( cs )
end
addEventHandler ( "onPlayerChat" , root , onChat )
O ile si? nie myl? ten skrypt powinien dzia?a? dobrze 🤔
Na poczatku podajesz typ czyli 1, a p??niej tekst.
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
Witam ma kto? fajn? paczk? do serwera MTA? Opr?cz Shared Game?
Wysłany: 2017-05-05, 18:14
Dexnes_
Tiger
Wiek: 26 Na forum: 4402 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
Przemox , Wejd? w dzia? "SPIS SKRYPT?W I MAP DO MTA:SA" tam jest ciekawa lista Gamemod?w , na pewno co? wybierzesz.
Wysłany: 2017-05-11, 22:56
koj155
Wiek: 42 Na forum: 4823 dni Posty: 3
Nick w MP: Speed
Szukam skryptu na Towary prosz? o pomoc
Wysłany: 2017-05-12, 11:35
MagiK.
Lua :-)
Wiek: 26 Na forum: 3441 dni Posty: 102
Piwa : 391
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
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.
Wysłany: 2017-05-13, 18:19
Limitowany1999
Wiek: 27 Na forum: 4087 dni Posty: 9
Nick w MP: Limitowany1999
Witam, potrzebuje banalnego skryptu, do tego aby po restarcie b?d? wy??czeniu serwera odpali?y si? automatycznie skrypty
Wysłany: 2017-05-13, 19:17
JoKeR7026
Wiek: 29 Na forum: 3478 dni Posty: 6
Losowy respawn pojazdu kto? ma taki skrypt?
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
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 , z = getElementPosition ( plr )
veh = createVehicle ( pojazd , x , y , z + 2 )
end
end
addCommandHandler ( 'autoresp' , vehlos )
Podpis
Kanał Youtube;
A tu zapraszam
[you]
, pomogłem Ci? Wynagrodź mnie
SUPPORT TEAM - 2016-09-03 do 2018-05-25
Test Mod - 2018-05-25
1k dni na Forum - 2018-01-28
GG: 62111935
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
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.
Tagi: szukam :: skryptu/modelu :: mta
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: