score help
#5

i made something and want to know if it works :

Код:
new Text:Textdraw2;
new lsscore;
new lvscore;
Код:
public OnPlayerDeath(playerid, killerid, reason)
{

  	if(GetPlayerTeam(killerid) == 1)
		{
			lvscore++;
		}
		else
		{
		if(GetPlayerTeam(killerid) == 2)
		{
			lsscore++;
		}
		if(lsscore == 20 || lvscore == 20)
		{
			SendRconCommand("gmx");

		}
	 	return 1;

 		}
		return 1;
}
Код:
public OnGameModeInit()
{
  Textdraw2 = TextDrawCreate(394.000000,1.000000,"LS:[%s]|| LV:[%s]");
  new string[128];
	format(string, sizeof(string), "LS: %d || LV: %d", lsscore, lvscore);
	TextDrawSetString(Textdraw2, string);
	TextDrawAlignment(Textdraw2,0);
	TextDrawBackgroundColor(Textdraw2,0x0000ffcc);
 	TextDrawFont(Textdraw2,3);
	TextDrawLetterSize(Textdraw2,0.399999,1.100000);
	TextDrawColor(Textdraw2,0xffffffff);
	TextDrawSetOutline(Textdraw2,1);
	TextDrawSetProportional(Textdraw2,1);
	TextDrawSetShadow(Textdraw2,1);
Reply


Messages In This Thread
score help - by hvampire - 01.02.2010, 01:25
Re: score help - by mansonh - 01.02.2010, 02:15
Re: score help - by hvampire - 01.02.2010, 02:29
Re: score help - by mansonh - 01.02.2010, 02:38
Re: score help - by hvampire - 01.02.2010, 02:54
Re: score help - by mansonh - 01.02.2010, 03:05
Re: score help - by hvampire - 01.02.2010, 03:51
Re: score help - by mansonh - 01.02.2010, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)