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

Wysłany: 2011-10-28, 19:28


Jacob

Głupiomądry






Wiek: 28
Na forum: 5502 dni
Posty: 967
Nick w MP: Jacob

Piwa: 786

Respekt: 212,3
Respekt: 212,3Respekt: 212,3

Kod:

function daj (kto)
setElementData(kto, "licencja", "ma")
end
addCommandHandler("daj", daj)

helikoptery = { [552]=true,[525]=true } -- id helikopter?w

function blokada ( player )
local pobierz = getElementData(player, "licencja")
local id = getElementModel(source)
if helikoptery[id] and seat == 0 then
if pobierz == "ma" then
setVehicleLocked ( source, false )
else
setVehicleLocked ( source, true )
end
end
end
addEventHandler("onVehicleStartEnter", getRootElement(), blokada)

A teraz? Wzi??em na inny zapis.

@EDIT:
Sory, wymi?kam. Mo?e kto? inny pomo?e.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-29, 19:11


DORIAN112







Wiek: 42
Na forum: 6183 dni
Posty: 76

Piwa: 1

Respekt: 50

Ostrzeżeń: 20%
Nie Dzia?a

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-10-29, 21:16


dida







Wiek: 30
Na forum: 5632 dni
Posty: 76

Piwa: 1

Respekt: 50

Kod:

function daj (cmd,odbiorca)
local kto = getPlayerFromName(odbiorca)
setElementData(kto, "licencja", true)
end
addCommandHandler("daj", daj)

helikoptery = { [552]=true,[525]=true } -- id helikopter?w

function blokada ( player )
local pobierz = getElementData(player, "licencja")
local id = getElementModel(source)
if helikoptery[id] and seat == 0 then
if pobierz == true then
setVehicleLocked ( source, false )
else
setVehicleLocked ( source, true )
end
end
end
addEventHandler("onVehicleStartEnter", getRootElement(), blokada)


Podpis
Lol")
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-06, 23:14


DORIAN112







Wiek: 42
Na forum: 6183 dni
Posty: 76

Piwa: 1

Respekt: 50

Ostrzeżeń: 20%
Sory ?e tak d?ugo nie mai?em czasu ale dla wszystkich daje gotowy tego kod
:D
--------------------------------------------------------------------------------------------------
helikoptery = { [552]=true,[487]=true } -- id helikopter?w

function blokada ( player,seat )
local id = getElementModel(source)
if ( helikoptery[getElementModel(source)] ) and seat == 0 then
if getElementData(player,"L.Pilota") == false then
setVehicleLocked ( source, true )
outputChatBox("Nie Posiadasz Licencji [Pilota]",player,198,0,0)
else
setVehicleLocked ( source, false )
end
end
end
addEventHandler("onVehicleStartEnter", getRootElement(), blokada)

Postaw piwo autorowi tego posta
 

 
Tagi: licencja :: helikopter
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Licencja na Helikopter 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