Wysłany: 2013-04-29, 19:02
Drak
Wiek: 34 Na forum: 4903 dni Posty: 71
Nick w MP: Drak
Piwa : 3
Mam dwa problemy z napraw? w markerze ;/
1. Gdy wjade w marker skrypt zabiera mi kase dop?ki z niego nie wyjade, a ma zabra? tylko raz.
2. Jak zrobi? by tylko kierowca mog? u?y? tego markeru?
Kod:
function fixCarSF ( thePlayer )
local car = getElementsByType ( "vehicle" )
for k , v in ipairs ( car ) do
fixVehicle ( v )
takePlayerMoney ( thePlayer , 100 )
outputChatBox ( "Naprawi?e? pojazd! Tracisz $ 100!" , thePlayer , 0 , 170 , 255 , true )
end
end
addEventHandler ( "onMarkerHit" , mark1 , fixCarSF )
Wysłany: 2013-04-29, 19:26
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Drak , function fixCarSF ( thePlayer )
if isPedInVehicle ( thePlayer ) then
local auto = getPedOccupiedVehicle ( thePlayer )
fixVehicle ( auto )
takePlayerMoney ( thePlayer , 100 )
outputChatBox ( "Naprawi?e? pojazd! Tracisz $ 100!" , thePlayer , 0 , 170 , 255 , true )
else
outputChatBox ( "Nie jestes w aucie" , thePlayer , 0 , 170 , 255 , true )
end
end
addEventHandler ( "onMarkerHit" , mark1 , fixCarSF )
Zobacz jak co? to napisz
Tagi: naprawa :: markerze
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: