Wysłany: 2015-08-01, 21:25
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Witam, mam sw?j stary lecz przerobiony przez GTAO i nie pokazuje markera. Oraz chcia?bym doda? aby nie trza by?o siedzie? w poje?dzie tylko w tamtym markerze i da? np niewidzialny marker o pozycjach - 148.9345703125 , 1168.6015625 , 19.795249938965
Oraz kod:
marker = createMarker (- 145.853515625 , 1165.5009765625 , 19.795249938965 , "cylinder" , 0 , 0 , 0 , 0 , 130 )
function addwheels ( sourcePlayer , command )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( sourcePlayer )), aclGetGroup ( "Mechanik_FC" ) ) then
if isElementWithinMarker ( sourcePlayer , marker ) then
theVehicle = getPlayerOccupiedVehicle ( sourcePlayer )
if ( theVehicle ) then
addVehicleUpgrade ( theVehicle , 1098 )
takePlayerMoney ( sourcePlayer , 3420 )
outputChatBox ( "Zamontowano czesc w pojezdzie." , source , 255 , 255 , 255 , true )
end
end
end
end
addCommandHandler ( "dodaj.1098" , addwheels )
function remwheels ( sourcePlayer , command )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( sourcePlayer )), aclGetGroup ( "Mechanik_FC" ) ) then
if isElementWithinMarker ( sourcePlayer , marker ) then
theVehicle = getPlayerOccupiedVehicle ( sourcePlayer )
if ( theVehicle ) then
removeVehicleUpgrade ( theVehicle , 1098 )
givePlayerMoney ( sourcePlayer , 3249 )
outputChatBox ( "Zdemontowano Czesc w pojezdzie." , source , 255 , 255 , 255 , true )
end
end
end
end
addCommandHandler ( "usun.1098" , remwheels )
Oraz jak teraz brak DB 3
za pomoc daje
Wysłany: 2015-08-01, 22:32
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
sebik2303 , u?yj:
-> Do sprawdzania kto jest w markerze:
Co do problemu - usu? warunek Kod: .
Jezeli usuwasz ten warunek musisz usunac tez jeden "end" //DestroY - juz tak zsby postow nie dobija?
Ostatnio zmieniony przez #404 2015-08-01, 22:34, w całości zmieniany 1 raz
Wysłany: 2015-08-01, 22:37
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Maximerr , ale chodzi mi aby skrypt widzia? pojazd bo teraz skrypt bd mnie widzia? jako w markerze a pojazdu nie
[ Dodano : 2015-08-03, 16:06 ]
Pomo?e kto? ?
Tagi: tuning
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: