Wysłany: 2020-12-08, 18:54
NoNamik
Wiek: 35 Na forum: 2185 dni Posty: 289
Nick w MP: JestemNoNamem
Piwa : 374
Witam mam deluxo mod ale jak raz odpalilem pozniej chce wylaczyc lub jak schowam do przecho i chce wlaczyc to mi spamuje Uruchomiono tryb latania (X) oraz Wy??czono tryb latania (X)
local car_fly = false
function fly ()
local vehicle = getPedOccupiedVehicle ( localPlayer )
if getElementModel ( vehicle ) == 502 then
if car_fly == false then
setWorldSpecialPropertyEnabled ( "aircars" , true )
outputChatBox ( "* Uruchomiono tryb latania (X)." )
car_fly = true
elseif car_fly == true then
setWorldSpecialPropertyEnabled ( "aircars" , false )
outputChatBox ( "* Wy??czono tryb latania (X)." )
car_fly = false
end
end
end
addEventHandler ( "onClientResourceStart" , getRootElement (), function()
bindKey ( "X" , "down" , fly ) -- Tu masz bind
end )
Więcej szczegółów
Wystawiono 3 piw(a):kowalrybak , Baksik578 , oshea_._.
Wysłany: 2020-12-08, 18:55
TheHeniu
Wiek: 22 Na forum: 3443 dni Posty: 25
Nick w MP: Arbuziik
Piwa : 607
Wysłany: 2020-12-08, 18:58
NoNamik
Wiek: 35 Na forum: 2185 dni Posty: 289
Nick w MP: JestemNoNamem
Piwa : 374
TheHeniu , ale tu nie chodzi o zapisywanie w bazie danych bo to mi nie jest potrzebne tylko tutaj sie buguje deluxo mode
Wysłany: 2020-12-08, 19:00
TheHeniu
Wiek: 22 Na forum: 3443 dni Posty: 25
Nick w MP: Arbuziik
Piwa : 607
local car_fly = false
function fly ()
local vehicle = getPedOccupiedVehicle ( localPlayer )
if car_fly == false then
setWorldSpecialPropertyEnabled ( "aircars" , true )
outputChatBox ( "W??czy?e? tryb latania!" , source )
car_fly = true
end
end
end
function offfly ()
local vehicle = getPedOccupiedVehicle ( localPlayer )
if car_fly == true then
setWorldSpecialPropertyEnabled ( "aircars" , false )
outputChatBox ( "Wy??czy?e? tryb latania!" , source )
car_fly = false
end
end
end
function removeHelmetOnExit ( thePlayer , seat , jacked )
setWorldSpecialPropertyEnabled ( "aircars" , false )
car_fly = false
end
addEventHandler ( "onClientVehicleExit" , getRootElement (), removeHelmetOnExit )
addEventHandler ( "onClientResourceStart" , getRootElement (), function()
bindKey ( "X" , "down" , fly ) -- Tu masz bind
bindKey ( "C" , "down" , offfly )
end )
Spr?buj
Wysłany: 2020-12-08, 19:06
NoNamik
Wiek: 35 Na forum: 2185 dni Posty: 289
Nick w MP: JestemNoNamem
Piwa : 374
Wysłany: 2020-12-08, 19:24
TheSebaPL
Mod-team
Wiek: 21 Na forum: 3098 dni Posty: 964
Piwa : 3102
NoNamik , podaj b??dy /debugscript 3
Wysłany: 2020-12-08, 20:00
_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
local car_fly = false
function wylaczLatanie ()
local vehicle = getPedOccupiedVehicle ( localPlayer )
if getElementModel ( vehicle ) == 587 then
if car_fly == true then
setWorldSpecialPropertyEnabled ( "aircars" , false )
outputChatBox ( "* Wy??czono tryb latania (C)." )
car_fly = false
end
end
end
function fly ()
local vehicle = getPedOccupiedVehicle ( localPlayer )
if getElementModel ( vehicle ) == 587 then -- tu dajesz id auta
if car_fly == false then
setWorldSpecialPropertyEnabled ( "aircars" , true )
outputChatBox ( "* Uruchomiono tryb latania (C)." )
addEventHandler ( "onClientVehicleExit" , vehicle , wylaczLatanie )
car_fly = true
end
end
end
addEventHandler ( "onClientVehicleExit" , root , function( plr )
if plr ~= localPlayer then return end
setWorldSpecialPropertyEnabled ( "aircars" , false )
end )
addEventHandler ( "onClientResourceStart" , getRootElement (), function()
bindKey ( "X" , "down" , fly ) -- Tu masz bind
end )
addEventHandler ( "onClientResourceStart" , getRootElement (), function()
bindKey ( "C" , "down" , wylaczLatanie ) -- Tu masz bind
end )
Tagi: deluxo :: mode
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: