| Tematy otagowane jako: lotnicze |
| 1. licencje lotnicze |
zrobi?em taki skrypt na licencje lotnicze i nie dzia?a podpowie kto? co jest ?le ?
serwer
[lua]
--lista pojazdow
local blokady = {}
--kategoria L1
blokady[593] = "L1" -- dodo
--kategoria L2
blokady[520] = "L2" -- hydra
blokady[577] = "L2" -- AT
blokady[512] = "L2" -- cropduster
blokady[553] = "L2" -- Nevada
blokady[476] = "L2" -- Rustler
blokady[519] = "L2" -- Shamal
blokady[460] = "L2" -- Skimmer
blokady[513] = "L2" -- Stunplane
--markery
local biurkop = createMarker( 358.77,186.47,1007.38, "cylinder", 2, 0,0, 255,255)
setElementInterior(biurkop, 3)
setElementDimension(biurkop, 3)
function onPrawkoHit(hitElement, dim)
if getElementType(hitElement) == "player" then
triggerClientEvent(hitElement, "showGUILot", resourceRoot, false, false, false)
end
end
addEventHandler("onMarkerHit", biurkop, onPrawkoHit)
--// koniec markerow i ich funkcji
local veh = {}
addEvent("egzaminPrawaLot", true)
addEventHandler("egzaminPrawaLot", getRootElement(),
function(kategoria, cena)
local account = getPlayerAccount(source)
if account then
local data = getAccountData(account, "kat"..kategoria)
if not data or data == false or data == nil then
if not veh[source] then
if kategoria == "L1" then
veh[source] = createVehicle(593,324.99,2541.45,17.20, 0, 0,-... |
| 2. Jak to przerobić żeby działał na lotnicze ;) |
Witam mam taki problem i? pr?bowa?em przerobi? ten o to skrypt z aut na samoloty no ale kij z tego wysz?o wi?c zwracam si? do was o pomoc mam nadziej? ?e kto? mi pomo?e
[code]
--kolejne wspolrzedne punktow
local trasa = {
{331.14,2521.66,17.62},
{406.52,2520.04,17.42},
{415.17,2493.63,17.39},
{227.50,2494.52,22.06},
{-101.72,2516.16,53.80},
{-469.62,2628.77,103.28},
{-1036.08,2706.44,123.19},
{-1489.50,2685.24,126.43},
{-2054.34,2576.14,185.25},
{-2426.47,2433.82,172.17},
{-2529.07,1869.53,113.27},
{-2552.66,1428.96,100.02},
{-2353.43,1129.38,130.42},
{-1898.94,990.85,171.07},
{-1616.00,916.49,172.80},
{-1109.09,757.67,112.79},
{-514.78,667.07,108.58},
{310.23,688.36,80.34},
{676.04,733.93,67.75},
{915.37,784.27,75.93},
{1236.82,978.49,94.99},
{1306.72,1319.95,149.90},
{1244.70,1785.84,222.58},
{1142.23,2023.80,223.29},
{1036.86,2217.57,175.90},
{862.41,2376.28,110.71},
{707.11,2441.82,85.39},
{526.06,2488.73,52.99},
{368.71,2500.40,22.78},
{289.51,2502.47,17.42},
{243.87,2544.52,17.60},
}--{x, y, z}, prosze pamietac o przecinku, dziekuje
--nasze kategorie oraz ceny
local kategorie = {
{"A", 100},
{"B", 50},
{"C", 150},
}
--gui
mojeW,mojeH = 640, 480
sW,sH = guiGetScreenSize()
width, height = (sW/mojeW), (sH/mojeH)
local guiprawko = {}
guiprawko[1] = guiCreateWindow(150*width, 65*height, 321*width, 309*height, "Prawo Jazdy", false)
guiWindowSetSi... |
|