Annas Posted May 11, 2015 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.
Walid Posted May 11, 2015 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 () Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
MTA Team botder Posted May 11, 2015 MTA Team Posted May 11, 2015 You should rather use setElementVelocity and setVehicleTurnVelocity GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Walid Posted May 11, 2015 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) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Annas Posted May 11, 2015 Author Posted May 11, 2015 shit not work .. i make it CLEINT SIDE = not work SERVER SIDE = Not Work pls help me ..
Castillo Posted May 11, 2015 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". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Walid Posted May 11, 2015 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. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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