new Text:Kills; new kills[MAX_PLAYERS];
TextDrawShowForPlayer(playerid,Kills);
OnPlayerDeath(playerid,kilerid,reason) { kills[killerid]++; format(killcounter,sizeof(killcounter),"Kills :%d",kills); TextDrawSetString(Kills,killcounter); return 1; }
Kills = TextDrawCreate(11.000000,273.000000,"Kills :"); TextDrawAlignment(Kills,0); TextDrawBackgroundColor(Kills,0x000000ff); TextDrawFont(Kills,1); TextDrawLetterSize(Kills,0.699999,1.600000); TextDrawColor(Kills,0x00ff0099); TextDrawSetOutline(Kills,1); TextDrawSetProportional(Kills,1); TextDrawSetShadow(Kills,1);
TextDrawSetString(Kills, killscounter);
TextDrawSetString(Text:Kills, killscounter);
Originally Posted by Etch ❽ H
Try This (Not Tested) :
Top Of Script : Код:
new Text:txtKills[MAX_PLAYERS]; new kills[MAX_PLAYERS]; Код:
TextDrawShowForPlayer(playerid,txtKills[playerid]); Код:
OnPlayerDeath(playerid,kilerid,reason) { new szString[128]; kills[killerid]++; format(szString,sizeof(szString),"Kills :%d",kills[killerid]); TextDrawSetString(txtKills[killerid],szString); return 1; } Код:
for(new i=0;i<MAX_PLAYERS;i++) { txtKills[i] = TextDrawCreate(11.000000,273.000000,"Kills :0"); TextDrawAlignment(txtKills[i],0); TextDrawBackgroundColor(txtKills[i],0x000000ff); TextDrawFont(txtKills[i],1); TextDrawLetterSize(txtKills[i],0.699999,1.600000); TextDrawColor(txtKills[i],0x00ff0099); TextDrawSetOutline(txtKills[i],1); TextDrawSetProportional(txtKills[i],1); TextDrawSetShadow(txtKills[i],1); } |