Whit3 Posted November 29, 2013 Share Posted November 29, 2013 i Want To get the count of the state of alive players local g_Me = getLocalPlayer() function check () alive = getElementData(g_Me, "state") ~= "alive" if alive <= 0 then outputChatBox ("Test") end end Link to comment
Castillo Posted November 29, 2013 Share Posted November 29, 2013 You want to get the amount of alive players? Link to comment
Tete omar Posted November 29, 2013 Share Posted November 29, 2013 If yes, then you could simply use: getAlivePlayers Link to comment
Whit3 Posted November 30, 2013 Author Share Posted November 30, 2013 You want to get the amount of alive players? I want to get the amount of the state alive players Link to comment
Castillo Posted November 30, 2013 Share Posted November 30, 2013 That doesn't make any sense. You want to know how much alive players there are or is it something else? Link to comment
bandi94 Posted November 30, 2013 Share Posted November 30, 2013 function check() local alive = getAlivePlayers() outputChatBox("there are: "..#alive.. " alive players") end Link to comment
Whit3 Posted November 30, 2013 Author Share Posted November 30, 2013 function check() local alive = getAlivePlayers() outputChatBox("there are: "..#alive.. " alive players") end Thanks i mean that 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