[Help] Score
#1

Nouhh, I'm back
What I mean:
there are 2 teams [I got 2 teams already.] The Army People, Civilians People.
Well I want, right bottom like this:
Army People: The Team Kill score <- in green
Civilians People: The Kill Team Scoring <- in red

Thnxxxx: D
Reply
#2

how u define ur team (example : TEAM_ARMY) ??
________
LovelyWendie
Reply
#3

Quote:
Originally Posted by [AC
Etch ]
how u define ur team (example : TEAM_ARMY) ??
Код:
#define TEAM_GROVE 1 // Army
#define TEAM_BALLA 2 // Civilian People
Reply
#4

if you want someone to make this for you

http://forum.sa-mp.com/index.php?topic=144062.0
Reply
#5

Quote:
Originally Posted by [GM
LeGenDy ]
if you want someone to make this for you

http://forum.sa-mp.com/index.php?topic=144062.0
Off-topic: Topic is beter

On-Topic: Anyone can help me?
Reply
#6

Код:
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;
}
________
Pov vid
Reply
#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
#8

maybe cause i use gteam and u use GetPlayerTeam?? try to replace gteam with GetPlayerTeam
________
Cheap Airsoft Gun
Reply
#9

+ plz post all errors and lines
________
Yamaha Mt-100 History
Reply
#10

Quote:
Originally Posted by [AC
Etch ]
+ plz post all errors and lines
Now i got no error, nothing edited.
But it isnt working.
i dont see an textdraw :l
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)