function otworz (thePlayer)
if getElementData(source,"player:duty") and getElementData(source,"player:duty") == "SAPD" then
if thePlayer ~= localPlayer then return end
guiSetVisible(okno_PSP, true)
showCursor(true)
outputChatBox("Otworzy?e?/a? szafk?")
end
end
addEventHandler("onClientMarkerHit", Szafka_PSP, otworz)
Okej niby wszystko fajnie, lecz nie mog? tego zrobi? na player:duty, chyba co? robi? ?le
function otworz (thePlayer)
if thePlayer ~= localPlayer then return end
if getElementData(thePlayer,"player:duty") == "SAPD" then
guiSetVisible(okno_PSP, true)
showCursor(true)
outputChatBox("Otworzy?e?/a? szafk?")
end
end
addEventHandler("onClientMarkerHit", Szafka_PSP, otworz)
Musisz nauczy? si? korzysta? z MTA Wiki. Tam ka?dy event jest opisany. Wszystko jest: czym jest source i czym s? argumenty przekazywane przez event do funkcji, kt?ra wykonuje si? pod wp?ywem eventu.
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