onplayerclickplayer
#1

PHP код:
public OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    
showstats(clickedplayerid);
    return 
1;

PHP код:
stock showstats(clickedplayerid)
{
         new 
iString[2000];
         
format (iStringsizeof(iString), "{CECEF6}(INFO) You are viewing %s's stats"PlayerName[clickedplayerid]);
         
SendClientMessage(clickedplayerid, -1iString);
         
format(iString,sizeof(iString),"{FCAE9D}Score: {FFFFFF}%i {FCAE9D}| Level: {FFFFFF}%i {FCAE9D}| Duels Won: {FFFFFF}%i {FCAE9D}| Duels Lost: {FFFFFF}%i"pInfo[clickedplayerid][Score], pInfo[clickedplayerid][Level], pInfo[clickedplayerid][DuelsWin], pInfo[clickedplayerid][DuelsLost]);
         
SendClientMessage(clickedplayerid, -1iString);
          
format(iString,sizeof(iString),"{FCAE9D}Total Points: {FFFFFF}%i {FCAE9D}| Total Respect: {FFFFFF}%i {FCAE9D}| Total Kills: {FFFFFF}%i {FCAE9D}| Total Deaths: {FFFFFF}%i"pInfo[clickedplayerid][Points], pInfo[clickedplayerid][Respect], pInfo[clickedplayerid][Kills],pInfo[clickedplayerid][Deaths]);
         
SendClientMessage(clickedplayerid, -1iString);
         
format(iString,sizeof(iString),"{FCAE9D}Current Kills: {FFFFFF}%i {FCAE9D}| Current Deaths: {FFFFFF}%i {FCAE9D}| Ratio: {FFFFFF}%.2f"PlayerKills[clickedplayerid], PlayerDeaths[clickedplayerid], floatdiv(PlayerKills[clickedplayerid], PlayerDeaths[clickedplayerid]));
         
SendClientMessage(clickedplayerid, -1iString);
         
format(iString,sizeof(iString),"{FCAE9D}Headshots: {FFFFFF}%i"pInfo[clickedplayerid][Headshots]);
         
SendClientMessage(clickedplayerid, -1iString);
          return 
1;

Doesn't work properly, what's wrong?
Reply


Messages In This Thread
onplayerclickplayer - by wallen - 18.02.2018, 16:52
Re: onplayerclickplayer - by Mugala - 18.02.2018, 17:01
Re: onplayerclickplayer - by wallen - 18.02.2018, 17:58
Re: onplayerclickplayer - by rfr - 18.02.2018, 18:03
Re: onplayerclickplayer - by wallen - 18.02.2018, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)