BH|LeFeS
DayZ is EPIC!
Wiek: 21 Na forum: 3508 dni Posty: 82
Nick w MP: LeFeS
Piwa : 7
Witam, mam problem z notyfikacjami.. postanowi?em wzi?? funkcj? notyfikacji z /vopis w Dutyadmin, ale jak wklei?em to wy?wiatla?o mi b??dy w db3.
Oto b??d z db3:
Kod:
-- Pasy
addEvent ( "zapnij:pasy" , true )
addEventHandler ( "zapnij:pasy" , root , function()
local car = getPedOccupiedVehicle ( source )
if car then else return end
if motory [ getElementModel ( car )] then return
-- outputChatBox ( "#004E8E[INTERAKCJA]#ffffffTen pojazd nie ma pas?w!" , source , 255 , 255 , 255 , true )
triggerClientEvent ( plr , "onClientAddNotification" , plr , "* Ten Pojazd nie ma pas?w!" , "error" )
end
if pasy == false then
pasy = true
setElementData ( source , "pasymam" , true )
-- outputChatBox ( "#004E8E[INTERAKCJA]#ffffffZapinasz pasy." , root , 255 , 255 , 255 , true )
triggerClientEvent ( plr , "onClientAddNotification" , plr , "* Zapinasz pasy!" , "success" )
else
pasy = false
setElementData ( source , "pasymam" , false )
-- outputChatBox ( "#004E8E[INTERAKCJA]#ffffffOdpinasz pasy." , root , 255 , 255 , 255 , true )
triggerClientEvent ( plr , "onClientAddNotification" , plr , "* Odpinasz pasy!" , "success" )
end
end )