Vander0832
Mapper/Grafik
Wiek: 28 Na forum: 3644 dni Posty: 52
Nick w MP: Vanderek
Piwa : 1105
Problem w tym, ?e w kodzie jest wszystko git, ale nie chce odpowiada? na to jak napiszemy na chacie
Kod: elseif callingPhoneNumber == 311 then
if startingCall then
outputChatBox("Halo tu Operator Kenny, prosze poda? lokalizacje.", callingElement)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 1, false)
else
if (callprogress==1) then -- Requesting the location
exports.anticheat:changeProtectedElementDataEx(callingElement, "call.location", message, false)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 2, false)
outputChatBox("Czy mo?esz opisa? pow?d Twojego po??czenia?", callingElement)
elseif (callprogress==2) then -- Requesting the situation
outputChatBox("Dzi?kujemy za rozmow?, wys?ali?my jednostk? do Twojej lokalizacji.", callingElement)
local location = getElementData(callingElement, "call.location")
local affectedElements = { }
for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas State Sheriff" ) ) ) do
for _, itemRow in ipairs(exports['item-system']:getItems(value)) do
local setIn = false
if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
table.insert(affectedElements, value)
setIn = true
break
end
end
end
for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas State Sheriff" ) ) ) do
outputChatBox("[Centrala 311] Uwaga wezwanie z Centrali - #" .. outboundPhoneNumber .. ". ", value, 245, 40, 135)
outputChatBox("[Centrala 311] Pow?d: '" .. message .. "'.", value, 245, 40, 135)
outputChatBox("[Centrala 311] Lokalizacja: '" .. tostring(location) .. "'.", value, 245, 40, 135)
end
triggerEvent("phone:cancelPhoneCall", callingElement)
--triggerEvent("phone:cancelPhoneCall", callingElement)
end
end
elseif callingPhoneNumber == 611 then
if startingCall then
outputChatBox("Operator Luke Dish: Halo tu Operator 2 Luke, prosze poda? lokalizacje.", callingElement)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 1, false)
else
if (callprogress==1) then -- Requesting the location
exports.anticheat:changeProtectedElementDataEx(callingElement, "call.location", message, false)
exports.anticheat:changeProtectedElementDataEx(callingElement, "callprogress", 2, false)
outputChatBox("Operator Luke Dish: Czy mo?esz opisa? pow?d Twojego po??czenia?", callingElement)
elseif (callprogress==2) then -- Requesting the situation
outputChatBox("Operator Luke Dish Lainster: Dzi?kujemy za rozmow?, wys?ali?my jednostk? do Twojej lokalizacji.", callingElement)
local location = getElementData(callingElement, "call.location")
local affectedElements = { }
for key, value in ipairs( getPlayersInTeam( getTeamFromName( "San Andreas Highway Patrol" ) ) ) do
for _, itemRow in ipairs(exports['item-system']:getItems(value)) do
local setIn = false
if (not setIn) and (itemRow[1] == 6 and itemRow[2] > 0) then
table.insert(affectedElements, value)
setIn = true
break
end
end
end
for key, value in ipairs( affectedElements ) do
outputChatBox("[Centrala 611] Uwaga wezwanie z Centrali - #" .. outboundPhoneNumber .. ". ", value, 245, 40, 135)
outputChatBox("[Centrala 611] Pow?d: '" .. message .. "'.", value, 245, 40, 135)
outputChatBox("[Centrala 611] Lokalizacja: '" .. tostring(location) .. "'.", value, 245, 40, 135)
end
triggerEvent("phone:cancelPhoneCall", callingElement)
triggerEvent("phone:cancelPhoneCall", callingElement)
end
end