Ruga Posted January 20, 2013 Share Posted January 20, 2013 (edited) нужно модель авто поставить на проверку ACL group или team , есть на проверку скина, а нужно на team или ACL, что бы игрок не входящий в состав team или ACL group, не мог сесть в авто)) спасибо заранее, вопрос наверно детский im sorry Edited January 20, 2013 by Guest Link to comment
Ruga Posted January 20, 2013 Author Share Posted January 20, 2013 мучался долго , получилось что это придеться писать каждой машине, а нужно поставить на модель, что из этого можно сделать? theVehicle = createVehicle ( 596, 1545.699, -1659, 5.599, 0, 0, 90.477) function enterVehicle ( thePlayer, seat, jacked ) if ( source == theVehicle ) and ( getPlayerTeam(thePlayer) and getTeamName(getPlayerTeam(thePlayer)) ~= "Police" ) then removePedFromVehicle ( thePlayer ) if ( theVehicle ) then toggleVehicleRespawn ( theVehicle, true ) setVehicleIdleRespawnDelay ( theVehicle, 4000 ) outputChatBox ( "Машина полиции", thePlayer ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle ) Link to comment
AMARANT Posted January 20, 2013 Share Posted January 20, 2013 What was that? Вот код: CarModels = { [596]=true } -- Сюда запиливай модели машин function CarsClosed ( thePlayer, seat, jacked ) if CarModels[getElementModel(source)] and seat==0 and getPlayerTeam(thePlayer)~=getTeamFromName("Police") then removePedFromVehicle(thePlayer) toggleVehicleRespawn ( source, true ) setVehicleIdleRespawnDelay ( source, 4000 ) outputChatBox ( "Машина полиции", thePlayer ) end end addEventHandler ( "onVehicleEnter", getRootElement(), CarsClosed ) Link to comment
Ruga Posted January 20, 2013 Author Share Posted January 20, 2013 могу от души поблагодарить))) спасибо)) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now