Wysłany: 2015-08-03, 18:08
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Witam, czemu jak ju? nie ma tuningu a jeszcze raz wpisz? komend? na usuni?cie to dodaje mi kas? chod? nie ma go. Prosz? o pomoc.
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 )
[ Dodano : 2015-08-03, 18:55 ]
https://wiki.multitheftauto.com/wiki/GetVehicleUpgradeOnSlot
To b?dzie trza by?o wykorzysta? ?
Wysłany: 2015-08-03, 21:14
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
Powinno spe?nia? oczekiwania
local function hasVehUpgrade ( veh , upgrade )
for k , v in pairs ( getVehicleUpgrades ( veh )) do
if v == upgrade then
return v or false
end
end
end
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
if hasVehUpgrade ( theVehicle , 1098 ) ~= false then
removeVehicleUpgrade ( theVehicle , 1098 )
givePlayerMoney ( sourcePlayer , 3249 )
outputChatBox ( "Zdemontowano Czesc w pojezdzie." , source , 255 , 255 , 255 , true )
end
end
end
end
end
addCommandHandler ( "usun.1098" , remwheels )
Wysłany: 2015-08-03, 23:22
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Tostuch , a mam pytanko.
Jak zrobi? aby kasa z demonta?u cz??ci nie sz?a do mechanika tylko do kierowcy pojazdu?
Tagi: usuwanie :: tuningu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: