16.04.2016, 19:08
(
Последний раз редактировалось Fantje; 17.04.2016 в 09:07.
)
Heey guys,
I am using Ladmin system and I've made a live stats textdraw here:
At the right you see the textdraw.
There is also an old textdraw from the old script with live stats but I want my own.
How can I get the kills, deaths, kd etc there working?
Thank you
Here the codes of the old stats textdraw ( My textdraw codes all below this ):
My Textdraw codes:
I am using Ladmin system and I've made a live stats textdraw here:
At the right you see the textdraw.
There is also an old textdraw from the old script with live stats but I want my own.
How can I get the kills, deaths, kd etc there working?
Thank you
Here the codes of the old stats textdraw ( My textdraw codes all below this ):
PHP код:
TextDrawShowForPlayer(playerid, Rank1[playerid]);
new str[100];
format(str, sizeof(str),"~y~RANK: ~w~%s - ~y~SCORE: ~w~%d~n~~g~KILLS: ~w~%d - ~r~DEATHS: ~w~%d", GetRankName(playerid),GetPlayerScore(playerid),PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
TextDrawSetString(Rank1[playerid], str);
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 99)
PHP код:
//Global Textdraws:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
Textdraw0 = TextDrawCreate(536.111083, 247.851867, "live stats:");
TextDrawLetterSize(Textdraw0, 0.449999, 1.600000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, -2147483393);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Textdraw1 = TextDrawCreate(530.000000, 272.740722, "Kills:");
TextDrawLetterSize(Textdraw1, 0.323332, 1.309630);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, -1);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(530.000000, 282.740722, "Deaths:");
TextDrawLetterSize(Textdraw2, 0.362776, 1.340743);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, -1);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
Textdraw3 = TextDrawCreate(530.000000, 292.740722, "K/D Ratio:");
TextDrawLetterSize(Textdraw3, 0.314443, 1.335557);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -1);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
Textdraw4 = TextDrawCreate(530.000000, 302.740722, "Score:");
TextDrawLetterSize(Textdraw4, 0.394443, 1.371853);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 1);
TextDrawBackgroundColor(Textdraw4, 51);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
Textdraw5 = TextDrawCreate(530.000000, 312.740722, "Kill Streak:");
TextDrawLetterSize(Textdraw5, 0.289443, 1.283705);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1061109505);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 1);
TextDrawBackgroundColor(Textdraw5, 51);
TextDrawFont(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
Textdraw6 = TextDrawCreate(521.444458, 248.314804, "usebox");
TextDrawLetterSize(Textdraw6, 0.000000, 10.226545);
TextDrawTextSize(Textdraw6, 628.000000, 0.000000);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, 0);
TextDrawUseBox(Textdraw6, true);
TextDrawBoxColor(Textdraw6, 102);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 0);
Textdraw7 = TextDrawCreate(530.555664, 258.222137, "-------------");
TextDrawLetterSize(Textdraw7, 0.449999, 1.600000);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, -1378294017);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 1);
TextDrawBackgroundColor(Textdraw7, 51);
TextDrawFont(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);
Textdraw8 = TextDrawCreate(521.444458, 344.240753, "usebox");
TextDrawLetterSize(Textdraw8, 0.000000, -1.065639);
TextDrawTextSize(Textdraw8, 628.000000, 0.000000);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -1378294017);
TextDrawUseBox(Textdraw8, true);
TextDrawBoxColor(Textdraw8, 255);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 0);
TextDrawBackgroundColor(Textdraw8, -1378294017);
TextDrawFont(Textdraw8, 0);