Wysłany: 2017-05-19, 16:34
Gravgor
Wiek: 22 Na forum: 3760 dni Posty: 380
Nick w MP: 1944
Piwa : 702
Cze?c mam pewnien problem robie bramki na autostrady.
Chce zeby gracz ktory wjedzie w marker nie mogl z niego wyjechac przed zaplata.
c.lua
local marker = createMarker ( 1710.05176 , - 808.82965 , 56.35443 , 'corona' , - 1 , 235 , 155 , 0 , 250 )
function MarkerHit ( hitPlayer , matchingDimension )
outputChatBox ( " COS TAM COS TAM" )
end
addEventHandler ( "onClientMarkerHit" , getRootElement (), MarkerHit )
function zaplac ( thePlayer , command , amount )
takePlayerMoney ( thePlayer , tonumber ( 20 ) )
end
addCommandHandler ( "zaplac" , zaplac )
s.lua
function toggleFreezeStatus ( thePlayer )
if getPedOccupiedVehicle ( thePlayer ) then
local playerVehicle = getPlayerOccupiedVehicle ( theVehicle )
local currentFreezeStatus = isElementFrozen ( playerVehicle )
local newFreezeStatus = not currentFreezeStatus
setElementFrozen ( PlayerVehicle , newFreezeStatus )
end
end
function MarkerHit ( hitPlayer , matchingDimension )
triggerClientEvent ( hitPlayer , "OnClientMarkerHit" , matchingDimension )
end
Wysłany: 2017-05-19, 16:57
Dexnes_
Tiger
Wiek: 26 Na forum: 4542 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
Najlepiej zrobi? to na GUI , ale je?eli chcesz zosta? przy komendach , to zr?b tak :
- Po wej?ciu w marker
- Do wpisania 2 komendy , po wpisaniu komendy usu? freeze.
Wysłany: 2017-05-19, 17:02
Gravgor
Wiek: 22 Na forum: 3760 dni Posty: 380
Nick w MP: 1944
Piwa : 702
"BlackGamePL" napisał/a :Najlepiej zrobi? to na GUI , ale je?eli chcesz zosta? przy komendach , to zr?b tak :
- Po wej?ciu w marker
- Do wpisania 2 komendy , po wpisaniu komendy usu? freeze.
w c.lua?
[ Dodano : 2017-05-19, 17:14 ]
Tak?
c.lua
local marker = createMarker ( 1710.05176 , - 808.82965 , 56.35443 , 'corona' , - 1 , 235 , 155 , 0 , 250 )
function MarkerHit ( hitPlayer , matchingDimension )
outputChatBox ( " COS TAM COS TAM" )
end
function zaplac ( thePlayer , command , amount )
takePlayerMoney ( thePlayer , tonumber ( 20 ) )
end
addCommandHandler ( "zaplac" , zaplac )
function toggleFreezeStatus ( thePlayer )
local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )
local currentFreezeStatus = isElementFrozen ( playerVehicle )
local newFreezeStatus = not currentFreezeStatus
setElementFrozen ( playerVehicle , newFreezeStatus )
end
addEventHandler ( "onClientMarkerHit" , getRootElement (), MarkerHit )
Wysłany: 2017-05-19, 17:18
Dexnes_
Tiger
Wiek: 26 Na forum: 4542 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
PieselDragon , preferowa?bym stron? servera co to takiego skryptu.
Wysłany: 2017-05-19, 17:20
Gravgor
Wiek: 22 Na forum: 3760 dni Posty: 380
Nick w MP: 1944
Piwa : 702
"BlackGamePL" napisał/a :PieselDragon , preferowa?bym stron? servera co to takiego skryptu.
Zrobil bys bo naprawde juz nie wiem jak.
Wysłany: 2017-05-19, 17:22
Dexnes_
Tiger
Wiek: 26 Na forum: 4542 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
PieselDragon , Je?eli ja ci to zrobi? to nigdy si? tego nie nauczysz, na wiki mta masz wszystko ?adnie opisane, wystarczy tylko znajomo?? angielskiego.
Wysłany: 2017-05-19, 17:29
Gravgor
Wiek: 22 Na forum: 3760 dni Posty: 380
Nick w MP: 1944
Piwa : 702
"BlackGamePL" napisał/a :PieselDragon , Je?eli ja ci to zrobi? to nigdy si? tego nie nauczysz, na wiki mta masz wszystko ?adnie opisane, wystarczy tylko znajomo?? angielskiego.
Prosze m?glbys mi to zrobic.
Wysłany: 2017-05-19, 17:40
Dexnes_
Tiger
Wiek: 26 Na forum: 4542 dni Posty: 620
Nick w MP: Dexnes
Piwa : 1394
PieselDragon , Je?eli liczysz na gotowy kod , zapraszam do tego temtu.
Tagi: bramki
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: