Witam mam ma?y problem mianowicie pisze w?asn? paczk? DM+RPG lecz gdy zaczyna?em pisa? strefy DM to wtedy pojawi? si? problem wspomn?, ?e dopiero zaczynam w LUA
local strefaDM =
{
{ p1 = -2049.11, p2 = -516.42, p3 = 35.33 };
{ p1 = -1646.57, p2 = -604.19, p3 = 14.14 };
}
for _, strefaPozycja in pairs( strefaDM ) do
createColSphere ( strefaPozycja.p1, strefaPozycja.p2, strefaPozycja.p3, 100 )
end
function wyjdzStrefaDM( theElement, matchingDimension )
if ( theElement == localPlayer ) then
outputChatBox( "Wyszed?e?(a?) z strefy DM" )
end
end
addEventHandler("onClientColShapeLeave", root, wyjdzStrefaDM)
function wejdzStrefaDM( theElement, matchingDimension )
if ( theElement == localPlayer ) then
outputChatBox( "Wszed?e?(a?) w stref? DM" )
end
end
addEventHandler("onClientColShapeHit", root, wejdzStrefaDM)
I mo?na r?wnie? tak,
local strefaDM = {
{ -2049.11, -516.42, 35.33, 100 },
{ -1646.57, -604.19, 14.14, 100 }
}
for k,v in ipairs( strefaDM ) do
local stworzStrefaDM = createColSphere ( v[1], v[2], v[3], [v4] )
end
function wyjdzStrefaDM( gracz )
if ( gracz == localPlayer ) then
outputChatBox( "Wyszed?e?(a?) z strefy DM" )
end
end
addEventHandler("onClientColShapeLeave", stworzStrefaDM, wyjdzStrefaDM)
function wejdzStrefaDM( gracz )
if ( gracz == localPlayer ) then
outputChatBox( "Wszed?e?(a?) w stref? DM" )
end
end
addEventHandler("onClientColShapeHit", stworzStrefaDM, wejdzStrefaDM)
Podpis
Truck soon...
Ostatnio zmieniony przez Ciastuuś 2018-04-04, 20:19, w całości zmieniany 2 razy
local strefaDM =
{
{ p1 = -2049.11, p2 = -516.42, p3 = 35.33 };
{ p1 = -1646.57, p2 = -604.19, p3 = 14.14 };
}
for _, strefaPozycja in pairs( strefaDM ) do
createColSphere ( strefaPozycja.p1, strefaPozycja.p2, strefaPozycja.p3, 100 )
end
function wyjdzStrefaDM( theElement, matchingDimension )
if ( theElement == localPlayer ) then
outputChatBox( "Wyszed?e?(a?) z strefy DM" )
end
end
addEventHandler("onClientColShapeLeave", root, wyjdzStrefaDM)
function wejdzStrefaDM( theElement, matchingDimension )
if ( theElement == localPlayer ) then
outputChatBox( "Wszed?e?(a?) w stref? DM" )
end
end
addEventHandler("onClientColShapeHit", root, wejdzStrefaDM)
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