Jump to content

[SOLVED] Need dxtext sth like that rank system!


Brolis

Recommended Posts

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 by Guest
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...