Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-07-07, 17:06


tomek19711971







Wiek: 31
Na forum: 4025 dni
Posty: 15
Nick w MP: tomek1971



Respekt: 50

Ostrzeżeń: 100%
Witam chc? przerobi? skrypt na zmian? tablicy aby mo?na by?o zmienia? tablic? w markerze

kod:
function PlateText(thePlayer,commandName,text)
    local Vehicle getPedOccupiedVehicle(thePlayer)
    if Vehicle then
        if text then
            setVehiclePlateTextVehicletext )
        else
            outputChatBox("Nale?y wpisa? wiadomo??.",thePlayer)
        end
    else
        outputChatBox("Potrzebujesz pojazdu aby zmieni? rejestracj?!",thePlayer)
    end
end
addCommandHandler("tablica",PlateText)

i za za?o?enie tablicy zabiera?o graczowi 1000 z?
za pomoc daje :piwo: i R*


Wiem ?e trzeba u?y?:
zmianatablic createMarker (-162.6331167.72619"cylinder"20,0,0,100 )
addEventHandler("onMarkerHit"zmianatablic, function(e)
takePlayerMoney (PlateText1000 )

Tylko niewiem w jakim miejscu trzeba wstawi?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-07, 17:20


piotr172







Wiek: 26
Na forum: 4417 dni
Posty: 130

Piwa: 2329

Respekt: 105,3
Respekt: 105,3


zmianatablic createMarker (-162.6331167.72619"cylinder"20,0,0,100 )

function PlateText(thePlayer,commandName,text)
if isElementWithinMarker (thePlayerzmianatablicthen
    local money getPlayerMoney(thePlayer)        
    if (money 1000then   
    local Vehicle getPedOccupiedVehicle(thePlayer)
    if Vehicle then
        if text then
        takePlayerMoney(thePlayer,1000)
            setVehiclePlateTextVehicletext )
        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."thePlayerend
end
addEventHandler("onMarkerHit"zmianatablicinfozmianatablic)




Ostatnio zmieniony przez piotr172 2015-07-07, 17:29, w całości zmieniany 2 razy  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-07, 17:21


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3


marker createMarker(xyz"cylinder"2.025500130)

function PlateText(thePlayer,commandName,text)
hajs getPlayerMoney(thePlayer)
if isElementWithinMarker(markerthen
    local Vehicle getPedOccupiedVehicle(thePlayer)
    if Vehicle then
        if text then
          if hajs >= 1000 then
            setVehiclePlateTextVehicletext )
            takePlayerMoney(thePlayer1000)
        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

Kod:


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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-08, 16:56


tomek19711971







Wiek: 31
Na forum: 4025 dni
Posty: 15
Nick w MP: tomek1971



Respekt: 50

Ostrzeżeń: 100%
Kod Piotra nie dzia?a ,a Iksdekowskiego pojawia si? marker ale po wpisaniu komendy wyskakuje taki error
 WARNINGrejka\client.lua:7Bad argument 'isElementWithinMarker'  [Expected marker at argument 2got none]


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-08, 17:07


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

marker createMarker(xyz"cylinder"2.025500130)

function PlateText(thePlayer,commandName,text)
hajs getPlayerMoney(thePlayer)
if isElementWithinMarker(thePlayermarkerthen
    local Vehicle getPedOccupiedVehicle(thePlayer)
    if Vehicle then
        if text then
          if hajs >= 1000 then
            setVehiclePlateTextVehicletext )
            takePlayerMoney(thePlayer1000)
        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

Kod:


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
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-08, 17:36


tomek19711971







Wiek: 31
Na forum: 4025 dni
Posty: 15
Nick w MP: tomek1971



Respekt: 50

Ostrzeżeń: 100%
Dzi?ki dzia?a ?ap :piwo: i R* 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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-08, 17:41


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

marker createMarker(xyz"cylinder"2.025500130)

function onWjedzie(gracz)
outputChatBox "Wpisz /tablica [tekst] aby zmieni? tablice koszt zmiany tablicy to 1000PLN"gracz )
end
addEventHandler"onMarkerHit"markeronWjedzie ) 

function PlateText(thePlayer,commandName,text)
hajs getPlayerMoney(thePlayer)
if isElementWithinMarker(thePlayermarkerthen
    local Vehicle getPedOccupiedVehicle(thePlayer)
    if Vehicle then
        if text then
          if hajs >= 1000 then
            setVehiclePlateTextVehicletext )
            takePlayerMoney(thePlayer1000)
        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)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-08, 17:43


tomek19711971







Wiek: 31
Na forum: 4025 dni
Posty: 15
Nick w MP: tomek1971



Respekt: 50

Ostrzeżeń: 100%
Dzi?ki dzia?a ty te? ?ap :piwo:


Do zamkni?cia :)

Postaw piwo autorowi tego posta
 

 
Tagi: zmiana :: tablic :: markerze
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zmiana tablic w markerze Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku