09.04.2015, 13:20
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?
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; }