Wysłany: 2012-10-24, 22:16
MarxVen
Wiek: 34 Na forum: 4975 dni Posty: 11
Kod: policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true, [497]=true }
policeSkins = { [280]=true, [281]=true, [282]=true, [283]=true, [284]=true, [285]=true, [286]=true }
function enterVehicle ( theVehicle, seat, jacked )
if ( policeVehicles[getElementModel ( theVehicle )] ) and ( not policeSkins[getElementModel ( source )] ) then
removePedFromVehicle ( source )
outputChatBox ( "- Tylko policjanci mog? wchodzi? do pojazd?w policji.", source, 255, 255, 0 )
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle )
Jak to przerobi?, ?eby tylko po wej?ciu na fotel kierowcy wyrzuca?o z auta?
Wysłany: 2012-10-25, 15:38
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
policeVehicles = { [ 598 ]= true , [ 596 ]= true , [ 597 ]= true , [ 599 ]= true , [ 497 ]= true }
policeSkins = { [ 280 ]= true , [ 281 ]= true , [ 282 ]= true , [ 283 ]= true , [ 284 ]= true , [ 285 ]= true , [ 286 ]= true }
function enterVehicle ( theVehicle , seat , jacked )
if ( policeVehicles [ getElementModel ( theVehicle )] ) and ( not policeSkins [ getElementModel ( source )] ) then
if seat == 0 then
removePedFromVehicle ( source )
outputChatBox ( "- Tylko policjanci mog? wchodzi? do pojazd?w policji." , source , 255 , 255 , 0 )
end
end
end
addEventHandler ( "onPlayerVehicleEnter" , getRootElement (), enterVehicle )
Tagi: auta :: frakcji :: przeróbka
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: