Wysłany: 2014-08-12, 13:30
MasterGame
Wiek: 34 Na forum: 4322 dni Posty: 4
Nick w MP: MasterGame
Piwa : 1
Siema potrzebuj? skryptu w kt?rym chodzi o to aby zwyk?y gracz kt?ry nie do??czy? do danej frakcji nie m?g? siada? do pojazd?w s?u?bowych.
Prosz? o szybk? odpowiedz./MasterGame
Wysłany: 2014-08-12, 13:36
pawelo1566
Mapper MTA
Wiek: 25 Na forum: 4852 dni Posty: 18
Nick w MP: pawelo1566
Piwa : 16
Prosz?: Kod: policeVehicles = { [598]=true,[596]=true,[597]=true,[599]=true }
policeSkins = { [280]=true,[281]=true,[282]=true,[283]=true,[284]=true,[285]=true,[286]=true }
function enterVehicle ( player, seat, jacked )
if ( policeVehicles[getElementModel(source)] ) and ( not policeSkins[getElementModel(player)] ) then
cancelEvent()
outputChatBox ( "Only policeman can enter police cars!", player )
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
function addHelmetOnEnter ( thePlayer, seat, jacked )
if ( getElementModel ( source ) == 522 ) then
addPedClothes ( thePlayer, "moto", "moto", 16 )
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), addHelmetOnEnter )
function removeHelmetOnExit ( thePlayer, seat, jacked )
if ( getElementModel ( source ) == 522 ) then
removePedClothes ( thePlayer, 16 )
end
end
addEventHandler ( "onVehicleExit", getRootElement(), removeHelmetOnExit )
Podpis
Polish RPG City Map
Wysłany: 2014-08-12, 13:46
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
pawelo1566 , czy ty nie rozumiesz ?
MasterGame , poszukaj jest poradnik na forum.
:
policeVehicles = { [ 598 ]= true ,[ 596 ]= true ,[ 597 ]= true ,[ 432 ]= true ,[ 433 ]= true ,[ 528 ]= true ,[ 490 ]= true ,[ 599 ]= true } -> Pojazdy do kt ? rych nie b ? dzie mo ? na wsi ??? bez danego skina .
frakcjaPolicja = "Policja"
function enterVehicle ( player , seat , jacked )
if seat == 0 then
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( frakcjaPolicja ) ) then
if ( policeVehicles [ getElementModel ( source )] ) then
else
cancelEvent ()
outputChatBox ( "Przykro mi ale nie jestes pracownikiem policji!" , player )
end
end
end
end
addEventHandler ( "onVehicleStartEnter" , getRootElement (), enterVehicle )
Tagi: potrzebny :: skrypt
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: