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

Wysłany: 2017-02-24, 08:54


dida102

LUA To moja Pasja






Wiek: 25
Na forum: 3613 dni
Posty: 86
Nick w MP: Remi

Piwa: 642

Respekt: 20

Ostrzeżeń: 100%
Witam chcia?bym Przerobi? Owy skrypt Aby By?a Syrena Dla PSP pod Mysqol a nie ACL i
chc? ?eby mia?a jaki? d?wi?k
x,y = guiGetScreenSize()
button = guiCreateButton(627/1440*x, 510/900*y, 209/1440*x, 123/900*y, "Uruchom Syrene", false)
guiSetProperty(button, "NormalTextColour", "FFAAAAAA")
guiSetVisible(button, false)

function drawSyrena()
dxDrawRectangle(600/1440*x, 278/900*y, 261/1440*x, 372/900*y, tocolor(0, 0, 33, 184), false)
dxDrawRectangle(590/1440*x, 265/900*y, 289/1440*x, 16/900*y, tocolor(187, 0, 0, 255), false)
dxDrawText("Syrena Strazy Po?arnej", 616/1440*x, 346/900*y, 851/1440*x, 445/900*y, tocolor(255, 255, 255, 255), 3.00, "default", "center", "center", false, false, false, false, false)
end

addEvent("showGUI", true)
addEventHandler("showGUI", getRootElement(), function()
guiSetVisible(button, true)
addEventHandler("onClientRender", getRootElement(), drawSyrena)
showCursor(true)
end)

addEventHandler("onClientGUIClick", button, function()
triggerServerEvent("playSyrena_s", getLocalPlayer())
guiSetVisible(button, false)
removeEventHandler("onClientRender", getRootElement(), drawSyrena)
showCursor(false)
end, false)

addEvent("playSyrena_c", true)
addEventHandler("playSyrena_c", getRootElement(), function()
local syrena = playSound3D("AsA.ogg", -2123.45,-12.66,46.50, true)
setSoundMaxDistance(syrena, 50)
setTimer(stopSound, 25*1000, 1, syrena)
2 kod
marker = createMarker(1931.39,-2009.92,17.35, "cylinder", 1, 0, 0, 0, 170)
addEventHandler("onMarkerHit", marker, function(he)
if getElementType(he) == "player" then
triggerClientEvent(he, "showGUI", he)
end
end)

addEvent("playSyrena_s", true)
addEventHandler("playSyrena_s", getRootElement(), function()
triggerClientEvent("playSyrena_c", getRootElement())
for k,v in ipairs(getElementsByType("player")) do
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(v)), aclGetGroup("Straz Pozarna")) then
outputChatBox(" ",v)
outputChatBox(" ",v)
outputChatBox("* #FF0000Niedaleko Ciebie rozlega si? d?wi?k #14FF00SYRENY #FF0000alarmowej stra?y #006E03PO?ARNEJ, #FF0000jeste? stra?akiem Jedz do #6500FFREMIZY!*",v, 255, 255, 255, true)
outputChatBox(" ",v)
outputChatBox(" ",v)
end
end
end)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-24, 10:49


mis14







Wiek: 25
Na forum: 3925 dni
Posty: 185

Piwa: 73

Respekt: -149

u?ywaj znacznik?w [.lua] bez . [./lua] posiadam taki sam skrypt po zalogowaniu si? na duty psp lub osp widzisz gui
marker createMarker(-2296.71,-137.72,41.03-0.9"cylinder"1000170)
addEventHandler("onMarkerHit"marker, function(he)
   -- if getElementType(he) == "player" then
            if getElementData(he"player:duty") == "PSP"    then
    triggerClientEvent(he"showGUI"he)
    end
end)

addEvent("playSyrena_s"true)
addEventHandler("playSyrena_s"getRootElement(), function()
triggerClientEvent("playSyrena_c"getRootElement())
    for k,v in ipairs(getElementsByType("player")) do
    if getElementData(v"player:duty") == "PSP"    then
        outputChatBox(" ",v)
        outputChatBox(" ",v)
        outputChatBox("* #FF0000W koszarach rozlega si? d?wi?k alarmu",v255255255true)
        outputChatBox(" ",v)
        outputChatBox(" ",v)
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-25, 10:03


dida102

LUA To moja Pasja






Wiek: 25
Na forum: 3613 dni
Posty: 86
Nick w MP: Remi

Piwa: 642

Respekt: 20

Ostrzeżeń: 100%
ten kod nie dzia?a Daj mi dal? Skrypt z meto.xml Bo nie dzia?a ale mete ja mg zrb jak co?

Podpis
Witaj na Moim Profilu.
Chętnie Pomogę Skype Pazdaix.
Szukam Mapera,Web Mastera,Modelarza Na Serwer Autorski Pod SQL .
Co Potrafię ,XML,LUA,Mapować,CSS,gui editor,siren editor.

!Pomogłem?Zostaw Respekt Oraz Piwo.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-02-25, 10:14


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Jakie? b??dy db3 ?

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Tagi: syrena :: psp
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » syrena psp Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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