Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: notifications
1. Notification's
Witam!

Mam b??d ze skryptem "notices" oraz z kodem kt?ry powoduje pokazanie si? informacji (chyba wiecie o co chodzi)
Wyskakuje taki b??d:
[img]http://i.imgur.com/MESxwSN.png[/img]

Oto kod na "notices":
[lua]
local displayWidth, displayHeight = guiGetScreenSize();

local notificationData = {};

local notificationFont = dxCreateFont('files/fonts/roboto.ttf', 12 * 2, false);
local iconsFont = dxCreateFont('files/fonts/icons.ttf', 12 * 2, false);

addEventHandler('onClientRender', root,
function()
for k, v in pairs(notificationData) do
if (v.State == 'fadeIn') then
local alphaProgress = (getTickCount() - v.AlphaTick) / 650;
local alphaAnimation = interpolateBetween(0, 0, 0, 255, 0, 0, alphaProgress, 'Linear');

if (alphaAnimation) then
v.Alpha = alphaAnimation;
else
v.Alpha = 255;
end

if (alphaProgress > 1) then
v.Tick = getTickCount();
v.State = 'openTile';
end
elseif (v.State == 'fadeOut') then
local alphaProgress = (getTickCount() - v.AlphaTick) / 650;
local alphaAnimation = interpolateBetween(255, 0, 0, 0, 0, 0, alphaProgress, 'Linear');

if (alphaAnimation) then
v.Alpha = alphaAnimation;
else
v.Alpha = 0;
end

if (alphaProgress > 1) then
notificationData = {};
end
elseif (v.State == 'openTile') then
local tileProgress = (getTickCount() - v.Tick) / 350;
local tilePosition = ...
2. Kolejny raz notifications
Witam mam skrypt na prawa jazdy i staram si? podmieni? normalne ChatBoxy tymi z tego zasobu . Lecz gdy podmieniam to nie dzia?a i nic si? nie pokazuje

Oto podmienione kody :

Orgina? :

outputChatBox("Aby zacz?? kurs prawa jazdy wpisz /egzaminb"source)


Podmianka :

exports.notifications:showBox ("info","Aby rozpocz?c egzamin wpisz /egzaminb")
3. Jak Notifications
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
4. Notifications
Cze?? mam problem ot?? znalaz?em w necie taki skrypt o nazwie notifications ale mi nie dzia?a :/ a tutaj ten skrypt

brama 
createObject 2990, -2554.3999616.9000217.4 )
bramaMarker createMarker (  -2554,617,15"corona"10000)



function 
otworz (player)
if 
isElementWithinMarker(playerbramaMarkerthen --sprawdza czy gracz jest w markerze
    moveObject 
brama3200, -2554.3999616.9000225.9 )    -- otwiera brame
    showBox 
("info","Trwa otwieranie bramy pogotowia")
end 
end
addEventHandler 
("onMarkerHit"bramaMarkerotworz)


function 
zamknij (leaveElementmatchingDimension)
if 
getElementTypeleaveElement ) == "player" then
    moveObject 
brama3200, -2554.3999616.9000217.4 )
    
showBox ("info","Trwa zamykanie bramy pogotowia")
end 
end
addEventHandler 
("onMarkerLeave"bramaMarkerzamknij)
5. Notifications w s-side
Cze??. Jak u?y? skryptu notifications w server.lua? Za pomoc = :piwo:
6. Notifications
Cze??, ot?? mam problem. Mam gamemode, ale... No w?a?nie te wiadomo?ci w czacie znudzi?y si?, wi?c znalaz?em skrypt w internecie Notifications. Co? jednak mi nie chce dzia?a?, dajmy naprzyk?ad skrawek tego kodu:

function info(tekst)
exports.notifications:showBox("info",tekst)
end

function autopPark sourcecmd)
    if(
isPedInVehicle(source)) then
        local autop 
getPedOccupiedVehicle source )
        if (
getElementData (source"hisCar")) and (getElementData (source"hisCar") ~= nil) and (getElementType(getElementData (source"hisCar")) == "vehicle"then
               local x
ygetElementPosition source )
               
local xa,ya,getElementRotation autop )
               
setElementData (autop,"xpos",x)
            
setElementData (autop,"ypos",y)
            
setElementData (autop,"zpos",z)
            
setElementData (autop,"angle",a)
            
showBox ("info","Zaparkowa?e? auto.")
              
saveCars()
        else
            
showBox ("info","To nie jest twoje auto.")
        
end
    
else
        
showBox ("info","Nie jeste? w pojezdzie.")
    
end
end

addCommandHandler 
("zaparkuj",autopPark)
To mi nic nie wyskakuje, skrypt nazywa si? notifications. Nie wiem co mam ?le zrobionego. Za pomoc = :piwo:
7. szukam rozwiązania z skryptem notifications
Witam od kilku godzin bawie si? z skryptem notifications
link:http://community.multitheftauto.com/index.php?p=resources&s=details&id=5812

robie tak jak jest opisane czyli tworze nowy folder wrucam tam pliki oraz w moim 2 skrypcie na prywatne auta gdzie informacja wcze?niej pokazywa?a si? na czacie zast?pi?em t? linijka lecz nie dzia?a prosze o pomoc
8. Notifications
Nie b?d? was nudzi? wst?pem, wi?c do rzeczy.

Chodzi o skrypt [b]NOTIFICATIONS[/b], nie wiem jak zrobi?, by zamiast tekstu na chacie wy?wietla?o te oknienko, tak jak tutaj: http://community.multithe...ations/9069.png

Za???my ?e mamy skrypt na zamykanie aut, teraz gdy wy?wietli nam si? jaki? error to pisze on na CHACIE, a ja chc? ustawi? tak, by te oknienko wyskakiwa?o i pisa?o ?e np.. "Nie jeste? w poje?dzie". Nie wiem czy zrozumieli?cie.. :(
[center]--------------------------------[/center]
W opisie skryptu na comminity pisz?, ?e mam u?y?
[lua]showBox ("info","Just some information")[/lua]

ale nie wiem jak tego u?y? np. w tym kodzie
[lua]function lockenterVehicle ( player, seat, jacked )
if ( lockVehicles[getElementModel ( source )] ) and ( not lockSkins[getElementModel ( player )] ) and ( seat == 0 ) then
cancelEvent()
outputChatBox ( "Samoch?d nie nale?y do Ciebie.", player , 255, 00, 00)
end
end[/lua]

u?y? to w taki spos?b ?
[lua]function lockenterVehicle ( player, seat, jacked )
if ( lockVehicles[getElementModel ( source )] ) and ( not lockSkins[getElementModel ( player )] ) and ( seat == 0 ) then
cancelEvent()
outputChatBox ( "Samoch?d nie nale?y do Ciebie.", player , 255, 00, 00)
showBox ("error","To nie jest twoj samochod")
end
end[/lua]

Prosz? o naprawd? szybk? pomoc, my?le ?e...