Syed Posted September 24, 2012 Posted September 24, 2012 Anyone know how to put extra protection on the top rank so for every 20k xp it's like 1k more fmj to kill them. And also the extra protection they get is displayed on thier profile after their rank I.e Rank: Official TP Legend [50%] < then when someone highlights [x%] it says this player has x% extra protection. ?? any help would be much appretiated. Quote
sniko Posted September 28, 2012 Posted September 28, 2012 (edited) Here's pseudo: var protection <= var default_protection var protection <= var protection (their xp / 20000) * 1000 var protection_added <= ( var protection / var default_protection ) * var default_protection -- Rank: Official TP Legend [var protection_added%] In theory, I think this should work :) Edited September 28, 2012 by sniko Quote
Spudinski Posted September 28, 2012 Posted September 28, 2012 Here's pseudo: var protection <= var default_protection var protection <= var protection (their xp / 20000) * 1000 var protection_added <= ( var protection / var default_protection ) * var default_protection -- Rank: Official TP Legend [var protection_added%] In theory, I think this should work :) Not pseudo code. For pseudo, use "let someVar =(be) 2. Quote
sniko Posted September 28, 2012 Posted September 28, 2012 Not pseudo code. For pseudo, use "let someVar =(be) 2. Noted. I was going by what my college tutor taught me. Now I remember that she called it plain English, my bad spud, thanks. Quote
Syed Posted September 30, 2012 Author Posted September 30, 2012 <tr> <td width="25%"><div align="right" class="style4 style3 style6">Rank</span>:</div></td> <td width="25%"><span class="style5"> <? if($fetch->rank == "Official TP Legend"){ $ranky="<font color=red>$fetch->rank</font>"; }elseif($fetch->rank != "Official TP Legend"){ $ranky="$fetch->rank"; } ?> <?php if ($fetch->userlevel == "){ echo "<b><font color='orange'> ADMIN[<font color='white'>$ranky<font color='orange'>]</font></b>"; }elseif ($fetch->gfxDesigner == ""){ echo "<b><font color='pink'> GFX Designer[<font color='white'>$ranky<font color='pink'>]</b>"; }elseif ($fetch->userlevel == "0"){ echo "<b>$ranky</b>"; }elseif($fetch->username == "l"){ echo"<b><font color='orange'> CODER[<font color='white'>$ranky<font color='orange'>]</b>"; }elseif ($fetch->userlevel == "){ echo "<b><font color='yellow'> MOD[<font color='white'>$ranky<font color='yellow'>]</b>"; }elseif ($fetch->userlevel == "){ echo "<b><font color='green'> HDOP[<font color='white'>$ranky<font color='green'>]</b>"; }elseif ($fetch->userlevel == ""){ echo "<b><font color='dodgerblue'> Forum MOD[<font color='white'>$ranky<font color='dodgerblue'>]</b>"; }elseif ($fetch->userlevel == ""){ echo "<b><font color='orange'> TP Coder[<font color='white'>$ranky<font color='orange'>]</b>"; }else{ echo "<b>$ranky</b>"; } ?> </span></td> What else would i have to add//??? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.