Wysłany: 2015-08-26, 08:47
TAYHI
Wiek: 29 Na forum: 5470 dni Posty: 10
Nick w MP: TAYHI
Witam serdecznie potrzebuje pomocy aby przerobic skrypt z tego
policeVehicles = { [598]=true,[596]=true,[597]=true,[432]=true,[433]=true,[528]=true,[490]=true,[407]=true,[544]=true,[416]=true }
policeSkins = { [280]=true,[281]=true,[282]=true,[283]=true,[284]=true,[285]=true,[286]=true,[275]=true,[276]=true,[277]=true,[274]=true,[278]=true,[279]=true }
function enterVehicle ( player, seat, jacked )
if seat == 0 then
if ( policeVehicles[getElementModel(source)] ) and ( not policeSkins[getElementModel(player)] ) then
cancelEvent()
outputChatBox ( "Niepracujesz w tej pracy niemozesz jezdzic tym pojazdem!!" )
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
na takie cos
https://community.multitheftauto.com/images/gallery/notifications/t_9069.png
Zeby wyskakiwa? napis w tym box
Z g?ry dzi?kuje
Wysłany: 2015-08-26, 10:25
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
Sciagnij ten skrypt na te okienka u gory (znajdz na community) i tutaj zamiast outputChatBox dodaj funkcje, ktora jest tam podana w skrypcie z tymi okienkami. Np. showWarning czy jak to tam jest, zobacz w skrypcie z tym powiadomieniem.
Wysłany: 2015-08-26, 10:45
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
http://community.mtasa.co...details&id=5812 < link do skryptu
A co do aktywacji tego okienka:
exports . nazwaskryptuznotyfikacjami : showBox ( "info" , "Tekst" )
exports . nazwaskryptuznotyfikacjami : showBox ( "error" , "Tekst" )
exports . nazwaskryptuznotyfikacjami : showBox ( "warning" , "Tekst" )
Wysłany: 2015-08-26, 11:20
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
policeVehicles = { [ 598 ]= true ,[ 596 ]= true ,[ 597 ]= true ,[ 432 ]= true ,[ 433 ]= true ,[ 528 ]= true ,[ 599 ]= true ,[ 426 ]= true }
policeSkins = { [ 280 ]= true ,[ 281 ]= true ,[ 282 ]= true ,[ 283 ]= true ,[ 284 ]= true ,[ 285 ]= true ,[ 286 ]= true }
function enterVehicle ( player , seat , jacked )
if seat == 0 then
if ( policeVehicles [ getElementModel ( source )] ) and ( not policeSkins [ getElementModel ( player )] ) then
cancelEvent ()
exports . info : showBox ( "info" , "Auto Policyjne" )
exports . info : showBox ( "error" , "Nie jeste? Policjantem !" )
exports . info : showBox ( "warning" , "Nie jeste? Policjantem " )
end
end
end
addEventHandler ( "onVehicleStartEnter" , getRootElement (), enterVehicle )
jak tak to mi nie dzia?a
Wysłany: 2015-08-26, 11:59
kubak14
Wiek: 24 Na forum: 5205 dni Posty: 119
Nick w MP: Heavy
Piwa : 149
Masakra...
S? to 3 r??ne typy wiadomo?ci a nie jedna i milion textow na niej...
exports.nazwaskryptuznotyfikacjami:showBox ("info","Tekst") - Informacja
exports.nazwaskryptuznotyfikacjami:showBox ("error","Tekst") - B??d
exports.nazwaskryptuznotyfikacjami:showBox ("warning", "Tekst") - Ostrze?enie
Ca?y skrypt:
oliceVehicles = { [ 598 ]= true ,[ 596 ]= true ,[ 597 ]= true ,[ 432 ]= true ,[ 433 ]= true ,[ 528 ]= true ,[ 599 ]= true ,[ 426 ]= true }
policeSkins = { [ 280 ]= true ,[ 281 ]= true ,[ 282 ]= true ,[ 283 ]= true ,[ 284 ]= true ,[ 285 ]= true ,[ 286 ]= true }
function enterVehicle ( player , seat , jacked )
if seat == 0 then
if ( policeVehicles [ getElementModel ( source )] ) and ( not policeSkins [ getElementModel ( player )] ) then
cancelEvent ()
exports . info : showBox ( "error" , "Nie jeste? policjantem" )
end
end
end
addEventHandler ( "onVehicleStartEnter" , getRootElement (), enterVehicle )
Wysłany: 2015-08-26, 12:16
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
nawet jak tak zrobie ! to mi nie dziala !
Wysłany: 2015-08-26, 13:15
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
To musi dzialac:
policeVehicles = { [ 598 ]= true ,[ 596 ]= true ,[ 597 ]= true ,[ 432 ]= true ,[ 433 ]= true ,[ 528 ]= true ,[ 599 ]= true ,[ 426 ]= true }
policeSkins = { [ 280 ]= true ,[ 281 ]= true ,[ 282 ]= true ,[ 283 ]= true ,[ 284 ]= true ,[ 285 ]= true ,[ 286 ]= true }
function enterVehicle ( player , seat , jacked )
if seat == 0 then
if ( policeVehicles [ getElementModel ( source )] ) and ( not policeSkins [ getElementModel ( player )] ) then
cancelEvent ()
exports . notifications : showBox ( "error" , "Nie jeste? policjantem" )
end
end
end
addEventHandler ( "onVehicleStartEnter" , getRootElement (), enterVehicle )
Wysłany: 2015-08-26, 14:26
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Wysłany: 2015-08-26, 14:55
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
Moze glupie pytanie, ale czy uruchomiles ten skrypt pobrany z community? Jak tak to jaka on ma nazwe, i podaj bledy z DB3 to postaram Ci sie pomoc.
Wysłany: 2015-08-26, 15:03
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
uruchomi?em , nazywa sie notifications i ni3 ma db3
Wysłany: 2015-08-26, 15:03
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
policeVehicles = { [ 598 ]= true ,[ 596 ]= true ,[ 597 ]= true ,[ 432 ]= true ,[ 433 ]= true ,[ 528 ]= true ,[ 599 ]= true ,[ 426 ]= true }
policeSkins = { [ 280 ]= true ,[ 281 ]= true ,[ 282 ]= true ,[ 283 ]= true ,[ 284 ]= true ,[ 285 ]= true ,[ 286 ]= true }
function enterVehicle ( player , seat , jacked )
if seat == 0 then
if ( policeVehicles [ getElementModel ( source )] ) and ( not policeSkins [ getElementModel ( player )] ) then
cancelEvent ()
exports . notifications : showBox ( player , "error" , "Nie jeste? policjantem" )
end
end
end
addEventHandler ( "onVehicleStartEnter" , getRootElement (), enterVehicle )
Wysłany: 2015-08-26, 15:09
TAYHI
Wiek: 29 Na forum: 5470 dni Posty: 10
Nick w MP: TAYHI
Fanciak
Jestes boski dziala wszystko
Tagi: jak :: notifications
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: