Deathmatch Textdraw(kills,deaths,killingspree,ratio) "With update"!!! [Help]
#4

forexample
pawn Код:
new TextDraw:pKills[MAX_PLAYERS];
new TextDraw:Deaths[MAX_PLAYERS];
new Kills[MAX_PLAYERS]; //at the top of your script.
new Deaths[MAX_PLAYERS] //at the top of your script too.
OnPlayerConnect(playerid)
{
pKills[playerid] = TextDrawCreate(265.882415, 317.333282, "Kills:");
TextDrawLetterSize(pKills[playerid], 0.449999, 1.600000);
TextDrawAlignment(pKills[playerid], 1);
TextDrawColor(pKills[playerid], -1);
TextDrawSetShadow(pKills[playerid], 0);
TextDrawSetOutline(pKills[playerid], 1);
TextDrawBackgroundColor(pKills[playerid], 51);
TextDrawFont(pKills[playerid], 1);
TextDrawSetProportional(pKills[playerid], 1);

pDeaths[playerid] = TextDrawCreate(265.882293, 334.833312, "Deaths:");
TextDrawLetterSize(pDeaths[playerid], 0.449999, 1.600000);
TextDrawAlignment(pDeaths[playerid], 1);
TextDrawColor(pDeaths[playerid], -1);
TextDrawSetShadow(pDeaths[playerid], 0);
TextDrawSetOutline(pDeaths[playerid], 1);
TextDrawBackgroundColor(pDeaths[playerid], 51);
TextDrawFont(pDeaths[playerid], 1);
TextDrawSetProportional(pDeaths[playerid], 1);
TextDrawShowForPlayer(playerid,pDeaths[playerid]);
TextDrawShowForPlayer(playerid,pKills[playerid]);
return 1;
}
OnPlayerDeath(playerid,killerid,reason)
{
    new string[100];string2[100];
    Kills[killerid] ++; // to increase killerid's kills.
    Deaths[playerid] ++; //to increase playerid's deaths.
    format(string,sizeof(string),"Kills:%d",Kills[killerid]);
    format(string,sizeof(string2),"Deaths:%d",Deaths[playerid]);
             TextDrawSetString(pKills[targetid], string);
    TextDrawSetString(pDeaths[playerid], string2);
             TextDrawShowForPlayer(playerid,pDeaths[playerid]);
             TextDrawShowForPlayer(playerid,pKills[playerid]);
    return 1;
}
Reply


Messages In This Thread
Deathmatch Textdraw(kills,deaths,killingspree,ratio) "With update"!!! [Help] - by Youtube12 - 30.11.2012, 10:58
Re: Deathmatch Textdraw(kills,deaths,killingspree,ratio) "With update"!!! [Help] - by [D]ry[D]esert - 30.11.2012, 13:06
Re: Deathmatch Textdraw(kills,deaths,killingspree,ratio) "With update"!!! [Help] - by ViniBorn - 30.11.2012, 13:14
Re: Deathmatch Textdraw(kills,deaths,killingspree,ratio) "With update"!!! [Help] - by [D]ry[D]esert - 30.11.2012, 13:25

Forum Jump:


Users browsing this thread: 3 Guest(s)