View Single Post
  #2  
Old 04-09-2007, 11:01 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
PHP Code:
//#CLIENTSIDE
function onMouseDown(button){
  switch (
temp.button){
    case 
"left":
      
CheckPlayer(mousexmousey);
    break;
  }
}

function 
CheckPlayer(mxmy){
  
temp.pid testPlayer(temp.mxtemp.my);
  if (
temp.pid > -1
    
setTarget(players[temp.pid]);
}

public function 
setTarget(target){
  
temp.target findPlayer(temp.target);

  
temp.playerhpstats =  {temp.target.clientr.player_hptemp.target.clientr.player_maxhp};
  
temp.playermpstats = {temp.target.clientr.player_mptemp.target.clientr.player_maxmp};
  
temp.playerclass temp.target.clientr.player_type;

  
showText(2003264"Arial""b"format("Health: %f/%f"temp.playerhpstats[0], temp.playerhpstats[1]));
  
changeimgvis(2004);

  
showText(2013280"Arial""b"format("Mana: %f/%f"temp.playermpstats[0], temp.playermpstats[1]));
  
changeimgvis(2014);

  
showText(2023296"Arial""b"format("Class: %s"temp.playerclass));
  
changeimgvis(2024);

Reply With Quote