Jump to content
MakeWebGames

Extra players protection


Syed

Recommended Posts

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.

Link to comment
Share on other sites

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 by sniko
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

<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//???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...