JuegosPato Posted September 8, 2013 Share Posted September 8, 2013 Como hago un scripts para que tenga los coches de una base exclusivo para un clan/team y que nadie lo pueda robar, destruir, etc... Link to comment
EstrategiaGTA Posted September 8, 2013 Share Posted September 8, 2013 Usa: cancelEvent () --Cancelarlo "onVehicleStartEnter" --El evento para cuando entre al vehículo. Es SERVER only. outputChatBox --Si quieres decirles que tienen que ser de X team para entrar Eso sería para bloquearlos y que no puedan entrar. En la Wiki tienes un ejemplo parecido a lo que quieres, solo lo editas y listo. 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 ) --when a player enters a vehicle if ( policeVehicles[getElementModel(source)] ) and ( not policeSkins[getElementModel(player)] ) then --if the vehicle is one of 4 police cars, and the skin is not a police skin cancelEvent() outputChatBox ( "Only policeman can enter police cars!", player ) --and tell the player why end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) --add an event handler for onVehicleStartEnter Link to comment
JuegosPato Posted September 8, 2013 Author Share Posted September 8, 2013 No seria mejor hacer un car spawn??, osea un marker y cuando lo tocas el marker te aparesca un gui para seleccionar una lista de coches, pero exclusivo para un team Link to comment
Recommended Posts