SA-MP Forums Archive
[Help] Score - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Score (/showthread.php?tid=129338)



[Help] Score - dclaw - 21.02.2010

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


Re: [Help] Score - aircombat - 21.02.2010

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


Re: [Help] Score - dclaw - 21.02.2010

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



Re: [Help] Score - Onyx09 - 21.02.2010

if you want someone to make this for you

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



Re: [Help] Score - dclaw - 21.02.2010

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?


Re: [Help] Score - aircombat - 21.02.2010

Код:
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


Re: [Help] Score - dclaw - 21.02.2010

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


Re: [Help] Score - aircombat - 21.02.2010

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


Re: [Help] Score - aircombat - 21.02.2010

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


Re: [Help] Score - dclaw - 21.02.2010

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