Annas Posted May 11, 2015 Share Posted May 11, 2015 i need a stuff for STAFF TEAM .. when i click "C" Bind , the vehicle stoped in 1sec in it PLACE . (i need it only team named "Staff" can do this ..) Thx. Link to comment
Walid Posted May 11, 2015 Share Posted May 11, 2015 i need a stuff for STAFF TEAM ..when i click "C" Bind , the vehicle stoped in 1sec in it PLACE . (i need it only team named "Staff" can do this ..) Thx. use setElementFrozen () Link to comment
MTA Team botder Posted May 11, 2015 MTA Team Share Posted May 11, 2015 You should rather use setElementVelocity and setVehicleTurnVelocity Link to comment
Walid Posted May 11, 2015 Share Posted May 11, 2015 it can be like this: function stopVehicle(player) if (getTeamName(getPlayerTeam(player)) == "Staff") then local vehicles = getElementsByType("vehicle") for i , vehicle in pairs (vehicles) do local Freeze = isElementFrozen (vehicle) local newStatus = not Freeze setElementFrozen (vehicle, newStatus ) end end end addCommandHandler("stop", stopVehicle) Link to comment
Annas Posted May 11, 2015 Author Share Posted May 11, 2015 shit not work .. i make it CLEINT SIDE = not work SERVER SIDE = Not Work pls help me .. Link to comment
yesyesok Posted May 11, 2015 Share Posted May 11, 2015 Type /stop and make sure you are in the staff team. Link to comment
Castillo Posted May 11, 2015 Share Posted May 11, 2015 I don't think you can use "/stop", since it's a MTA hard coded command ( for stopping resources ). Change the vehicle to something else, such as "freezevehs". Link to comment
Walid Posted May 11, 2015 Share Posted May 11, 2015 :~ not work ..i make it CLEINT SIDE = not work SERVER SIDE = Not Work pls help me .. it's server side code, replace /stop with any other command it's just an example. 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