zmianatablic = createMarker (-162.633, 1167.726, 19, "cylinder", 2, 0,0,0,100 )
function PlateText(thePlayer,commandName,text)
if isElementWithinMarker (thePlayer, zmianatablic) then
local money = getPlayerMoney(thePlayer)
if (money > 1000) then
local Vehicle = getPedOccupiedVehicle(thePlayer)
if Vehicle then
if text then
takePlayerMoney(thePlayer,1000)
setVehiclePlateText( Vehicle, text )
else
outputChatBox("Nale?y wpisa? wiadomo??.",thePlayer)
end
else
outputChatBox("Potrzebujesz pojazdu aby zmieni? rejestracj?!",thePlayer)
end
else
outputChatBox("Musisz posiada? 1000$!",thePlayer)
end
else
outputChatBox("Musisz by? w markerze zmiany tablic!",thePlayer)
end
end
addCommandHandler("tablica",PlateText)
function infozmianatablic(thePlayer)
outputChatBox( "Wpisz /tablica [tekst] aby zmieni? tablice pojazdu.", thePlayer)
end
end
addEventHandler("onMarkerHit", zmianatablic, infozmianatablic)
marker = createMarker(x, y, z, "cylinder", 2.0, 255, 0, 0, 130)
function PlateText(thePlayer,commandName,text)
hajs = getPlayerMoney(thePlayer)
if isElementWithinMarker(marker) then
local Vehicle = getPedOccupiedVehicle(thePlayer)
if Vehicle then
if text then
if hajs >= 1000 then
setVehiclePlateText( Vehicle, text )
takePlayerMoney(thePlayer, 1000)
else
outputChatBox("Nie masz 1000",thePlayer)
end
else
outputChatBox("Wpisz tekst",thePlayer)
end
else
outputChatBox("Nie masz pojazdu", thePlayer)
end
end
end
addCommandHandler("tablica",PlateText)
Podpis
Jedyny kontakt ze mną to PW forum
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
marker = createMarker(x, y, z, "cylinder", 2.0, 255, 0, 0, 130)
function PlateText(thePlayer,commandName,text)
hajs = getPlayerMoney(thePlayer)
if isElementWithinMarker(thePlayer, marker) then
local Vehicle = getPedOccupiedVehicle(thePlayer)
if Vehicle then
if text then
if hajs >= 1000 then
setVehiclePlateText( Vehicle, text )
takePlayerMoney(thePlayer, 1000)
else
outputChatBox("Nie masz 1000",thePlayer)
end
else
outputChatBox("Wpisz tekst",thePlayer)
end
else
outputChatBox("Nie masz pojazdu", thePlayer)
end
end
end
addCommandHandler("tablica",PlateText)
teraz bedzie dzialalo : )))
Podpis
Jedyny kontakt ze mną to PW forum
local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Dzi?ki dzia?a ?ap i ale mam jeszcze jedno pytanie da?o by rade zrobi? aby osobie kt?ra wjedzie w marker pisa?o Wpisz /tablica [tekst] aby zmieni? tablice koszt zmiany tablicy to 1000PLN
marker = createMarker(x, y, z, "cylinder", 2.0, 255, 0, 0, 130)
function onWjedzie(gracz)
outputChatBox ( "Wpisz /tablica [tekst] aby zmieni? tablice koszt zmiany tablicy to 1000PLN", gracz )
end
addEventHandler( "onMarkerHit", marker, onWjedzie )
function PlateText(thePlayer,commandName,text)
hajs = getPlayerMoney(thePlayer)
if isElementWithinMarker(thePlayer, marker) then
local Vehicle = getPedOccupiedVehicle(thePlayer)
if Vehicle then
if text then
if hajs >= 1000 then
setVehiclePlateText( Vehicle, text )
takePlayerMoney(thePlayer, 1000)
else
outputChatBox("Nie masz 1000",thePlayer)
end
else
outputChatBox("Wpisz tekst",thePlayer)
end
else
outputChatBox("Nie masz pojazdu", thePlayer)
end
end
end
addCommandHandler("tablica",PlateText)
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