Dolinho Posted March 6, 2015 Share Posted March 6, 2015 how to prevent a player to leave your boat? I'm trying this but not sure. for _,v in ipairs (getPlayersInTeam (getTeamFromName("Grupo Azul"))) do local vehicle = getPedOccupiedVehicle ( v ) setVehicleLocked ( vehicle, true ) Link to comment
xeon17 Posted March 6, 2015 Share Posted March 6, 2015 Should work , didn't tested it. local players = {} addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () for _,v in ipairs (getPlayersInTeam (getTeamFromName("Grupo Azul"))) do players[v] = true end end) addEventHandler("onVehicleStartExit",root, function (thePlayer) vehicle = getVehicleType(source) if vehicle == "Boat" and players[thePlayer] then outputChatBox("You can't leave this vehicle",thePlayer,255,0,0,true) cancelEvent() end end) Link to comment
Dolinho Posted March 6, 2015 Author Share Posted March 6, 2015 good, it worked ... How can I make a team not stay in fisivel scoreboar for certain players? Link to comment
xeon17 Posted March 6, 2015 Share Posted March 6, 2015 good, it worked ... How can I make a team not stay in fisivel scoreboar for certain players? I'm glad to hear that is works I didn't understood you at all , could you explain better. Link to comment
Dolinho Posted March 6, 2015 Author Share Posted March 6, 2015 I created a team, I want that a particular group is not visible on the scoreboard I need the team to check how many players are in them. Link to comment
Addlibs Posted March 6, 2015 Share Posted March 6, 2015 You'd have to modify the scoreboard resource for this. 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