Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-10-24, 22:16


MarxVen







Wiek: 34
Na forum: 4974 dni
Posty: 11



Respekt: 50

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?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-10-25, 15:38


Riot

3X






Wiek: 29
Na forum: 5729 dni
Posty: 1123
Nick w MP: Riot/3X

Piwa: 286

Respekt: 123
Respekt: 123

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 theVehicleseatjacked ) 
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."source255255end 
end
end 
addEventHandler "onPlayerVehicleEnter"getRootElement(), enterVehicle 


Postaw piwo autorowi tego posta
 

 
Tagi: auta :: frakcji :: przeróbka
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Auta frakcji - przeróbka Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku