Brolis Posted August 15, 2012 Share Posted August 15, 2012 (edited) Hi, I would like to create dxtext or something like that rank text in my server by using if (zombiekills >= 0) and (zombiekills <= 4) then and also elseif (zombiekills >= 5) and (zombiekills <= 10) then That if zombie kills is from 0 to 4 the text i set will be showing for player, if zombie kills is from 5 to 10 it will be showing other text i want, like your rank is... I tryed to do it by myself but not successfull... Maybe someone of you guys could create for me that? Edited December 25, 2012 by Guest Link to comment
Cadu12 Posted August 15, 2012 Share Posted August 15, 2012 if (zombiekills <= 5) then elseif (zombiekills <= 10) then elseif (zombiekills <= 20) then ... end Link to comment
Anderl Posted August 15, 2012 Share Posted August 15, 2012 local aZombieKills = { { 0, 4, "Text 1" }, { 5, 10, "Text 2" }; } for i = 1, #aZombieKills do if( zombiekills >= aZombieKills[i][1] and zombiekills <= aZombieKills[i][2] ) then -- show text: aZombieKills[i][3] break 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