Siema mordeczki mam do was tak? sprawe pisze skrypt na ?owienie ryb i mam taki pytanie jak zrobi? ?e jak kupuje w?dk? to zeby ona by?a np n a 10x urzy?
addEvent ("Wedka", true)
addEventHandler ("Wedka", root,
function (cel)
if not isPedInVehicle(cel) then
local ile = 10
setElementData (cel, "Wedeczka", tonumber(ile))
outputChatBox ("Brawo", cel)
else
outputChatBox ("Zenada", cel)
end
end
)
addEvent ("SprWedka", true)
addEventHandler ("SprWedka", root,
function (cel)
if getElementData (cel, "Wedeczka") == true then
else
outputChatBox ("*Niestety nie posiadasz wedki ;(. Kup ja w sklepie wedkarskim;).",255, 0, 0, cel)
end
end
)
addEvent ("Wedka", true)
addEventHandler ("Wedka", root,
function (cel)
if not isPedInVehicle(cel) then
local ile = 10
setElementData (cel, "Wedeczka", tonumber(ile))
outputChatBox ("Brawo", cel)
else
outputChatBox ("Zenada", cel)
end
end
)
addEvent ("SprWedka", true)
addEventHandler ("SprWedka", root,
function (cel)
if getElementData ( cel, "Wedka" ) >= 1 then
ilosc = getElementData ( cel, "Wedka" )
local jedna = 1
getElementData ( cel, "Wedka", tonumber(ilosc)-tonumber(jedna) )
else
outputChatBox ("*Niestety nie posiadasz wedki ;(. Kup ja w sklepie wedkarskim;).",255, 0, 0, cel)
end
end
)
addEvent ("Wedka", true)
addEventHandler ("Wedka", root,
function (cel)
if not isPedInVehicle(cel) then
local ile = 10
setElementData (cel, "Wedeczka", tonumber(ile))
outputChatBox ("Brawo", cel)
else
outputChatBox ("Zenada", cel)
end
end
)
addEvent ("SprWedka", true)
addEventHandler ("SprWedka", root,
function (cel)
if getElementData ( cel, "Wedka" ) >= 1 then
ilosc = getElementData ( cel, "Wedka" )
local jedna = 1
setElementData ( cel, "Wedka", tonumber(ilosc)-tonumber(jedna) )
end
end
)
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