I need a kill counter.
#2

Try This (Not Tested) :

Top Of Script :
Код:
new Text:Kills;
new kills[MAX_PLAYERS];
OnPlayerSpawn:
Код:
TextDrawShowForPlayer(playerid,Kills);
Код:
OnPlayerDeath(playerid,kilerid,reason)
{
kills[killerid]++;
format(killcounter,sizeof(killcounter),"Kills :%d",kills);
TextDrawSetString(Kills,killcounter);
return 1;
}
OnGameModeInit :
Код:
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);
Reply


Messages In This Thread
I need a kill counter. - by [MWR]Blood - 08.04.2010, 09:43
Re: I need a kill counter. - by aircombat - 08.04.2010, 10:48
Re: I need a kill counter. - by [MWR]Blood - 08.04.2010, 11:02
Re: I need a kill counter. - by [MWR]Blood - 08.04.2010, 11:15
Re: I need a kill counter. - by aircombat - 08.04.2010, 12:00
Re: I need a kill counter. - by biltong - 08.04.2010, 12:09
Re: I need a kill counter. - by aircombat - 08.04.2010, 12:32
Re: I need a kill counter. - by Simon - 08.04.2010, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)