BonSay~^ Posted September 10, 2015 Share Posted September 10, 2015 Como faço pra quando eu digitar /eventodesativar todos os players que estarem em uma dimensao X morrerem ? Link to comment
[M]ister Posted September 10, 2015 Share Posted September 10, 2015 local dim = 1 addCommandHandler("eventodesativar", function(source) if hasObjectPermissionTo(source,"function.kickPlayer",false) then for _,player in pairs(getElementsByType("player")) do if getElementDimension(player) == dim then killPed(player) end end end end ) 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