|
| 16 Mar 2014 09:39 PM |
I have a command that changes a user's rank. There is a table called 'levels' and it looks like this: levels = {["Eternalfireeater"] = 7} etc. Here is the command:
elseif string.sub(msg:lower(), 1,5) == "rank/" then local person = findPlayer(separate(msg, 2)) local newRank = separate(msg, 3) local currentRank = levels[person.Name] if person and newRank and currentRank then playerRank = levels[player.Name] if playerRank > currentRank and playerRank > newRank then levels[person.Name] = newRank alert(person, "Your level is "..levels[person.Name]..".") end end |
|
|
| Report Abuse |
|
| |
| |
| |