Need Small help Rep +
#5

Too make lag less , i'm removing stats update timer but i want to know how i can update these text
onplayerdeath ?
how i can use them onplayerdeath to update these textdraws?

Код:
stock  StatsInfromation(playerid)
{
	if (IsPlayerConnected(playerid))
  	{
    format(Jstring, sizeof(Jstring), "~y~Rank : ~w~%s" , GetRankName(playerid));
    PlayerTextDrawSetString(playerid,Rank[playerid],Jstring);
    
    format(Jstring, sizeof(Jstring), "~b~Score : ~w~%d" , GetPlayerScore(playerid));
    PlayerTextDrawSetString(playerid,Stats[playerid],Jstring);

    format(Jstring, sizeof(Jstring), "~g~Kills : ~w~%d" , pInfo[playerid][Kills]);
    PlayerTextDrawSetString(playerid,kills[playerid],Jstring);

    format(Jstring, sizeof(Jstring), "~r~Deaths : ~w~%d" , pInfo[playerid][Deaths]);
    PlayerTextDrawSetString(playerid,pDeaths[playerid],Jstring);

    format(Jstring, sizeof(Jstring), "~b~Headshots : ~w~%d" , pInfo[playerid][Headshot]);
    PlayerTextDrawSetString(playerid,HEADSHOTS[playerid],Jstring);

    format(Jstring, sizeof(Jstring), "~r~Streak : ~w~%d" , Streaks[playerid]);
    PlayerTextDrawSetString(playerid,KS[playerid],Jstring);

    format(Jstring, sizeof(Jstring), "~y~Ratio : ~w~%.2f" ,Float:pInfo[playerid][Kills]/Float:pInfo[playerid][Deaths]);
    PlayerTextDrawSetString(playerid,RATIO[playerid],Jstring);
	}
	return 1;
}
Reply


Messages In This Thread
Need Small help Rep + - by MBilal - 09.04.2015, 11:09
Re: Need Small help Rep + - by Sithis - 09.04.2015, 11:44
Re: Need Small help Rep + - by MBilal - 09.04.2015, 11:46
Re: Need Small help Rep + - by [ABK]Antonio - 09.04.2015, 12:51
Re: Need Small help Rep + - by MBilal - 09.04.2015, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)