[Help] Score
#7

Quote:
Originally Posted by [AC
Etch ]
Код:
Top Of Script :

new CivilianScore = 0;
new ArmyScore = 0;
new Text:Textdraw2;
Код:
public OnPlayerDeath(playerid,killerid,reason)
{

  if(gTeam[playerid]==TEAM_GROVE)
  {
  CivilianScore++;
  }else{
  ArmyScore++
  }
  new tmpstr[50];
  format(tmpstr,sizeof(tmpstr),"~r~Army: %d  ~n~~n~~g~Civilian: %d",ArmyScore,CivilianScore);
  TextDrawSetString(Textdraw2,tmpstr);
  return 1;
}
Код:
public OnGameModeInit()
{

    Textdraw2 = TextDrawCreate(11.000000,273.000000,"~r~Army: 0 ~n~~n~~g~Civilian: 0");
	TextDrawAlignment(Textdraw2,0);
	TextDrawBackgroundColor(Textdraw2,0x000000ff);
	TextDrawFont(Textdraw2,1);
	TextDrawLetterSize(Textdraw2,0.699999,1.600000);
	TextDrawColor(Textdraw2,0x00ff0099);
	TextDrawSetOutline(Textdraw2,1);
	TextDrawSetProportional(Textdraw2,1);
	TextDrawSetShadow(Textdraw2,1);
     return 1;
}
16 errors lol
Reply


Messages In This Thread
[Help] Score - by dclaw - 21.02.2010, 19:16
Re: [Help] Score - by aircombat - 21.02.2010, 19:17
Re: [Help] Score - by dclaw - 21.02.2010, 19:18
Re: [Help] Score - by Onyx09 - 21.02.2010, 19:19
Re: [Help] Score - by dclaw - 21.02.2010, 19:22
Re: [Help] Score - by aircombat - 21.02.2010, 19:24
Re: [Help] Score - by dclaw - 21.02.2010, 19:48
Re: [Help] Score - by aircombat - 21.02.2010, 19:51
Re: [Help] Score - by aircombat - 21.02.2010, 19:54
Re: [Help] Score - by dclaw - 21.02.2010, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)