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

Wysłany: 2015-08-26, 08:47


TAYHI







Wiek: 29
Na forum: 5469 dni
Posty: 10
Nick w MP: TAYHI



Respekt: 50

Witam serdecznie potrzebuje pomocy aby przerobic skrypt z tego







na takie cos


https://community.multitheftauto.com/images/gallery/notifications/t_9069.png


Zeby wyskakiwa? napis w tym box

Z g?ry dzi?kuje

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 10:25


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 10:45


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
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")


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 11:20


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157


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 playerseatjacked ) 
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 ;(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 11:59


kubak14







Wiek: 24
Na forum: 5205 dni
Posty: 119
Nick w MP: Heavy

Piwa: 149

Respekt: 45,8

Ostrzeżeń: 20%
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 playerseatjacked ) 
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 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 12:16


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

nawet jak tak zrobie ! to mi nie dziala !

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 13:15


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

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 playerseatjacked ) 
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 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 14:26


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Nie dzia?a.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 14:55


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 15:03


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

uruchomi?em , nazywa sie notifications i ni3 ma db3

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 15:03


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

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 playerseatjacked ) 
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 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-26, 15:09


TAYHI







Wiek: 29
Na forum: 5469 dni
Posty: 10
Nick w MP: TAYHI



Respekt: 50

Fanciak

Jestes boski dziala wszystko :)

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: notifications
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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