[HELP] Team Scores
#1

hey for my Cod6 samp server i would like team scores in a textdraw in the bottom right corner i cant workout how to do this
if anyone could maybe make me one

my server has 3 teams ( TEAM_USA TEAM_ENGLISH TEAM_RUSSIA )


thanks
Reply
#2

can anyone help

sorry for double post
Reply
#3

well i love text draws so your lucky xD

i made this i hope it works fine for you
all i ask is that you put the credit for this to me in your script doesnt have to be in-game just if you release it im there xD ty

hope you enjoy

it was a bit big so i put it here xD

http://pawn.pastebin.com/m3da4fba0

EDIT: get any problems with it im happy to help
Reply
#4

ive loaded this but the textdraw isnt showing :<
Reply
#5

EDIT: ok so you see nothing at all when you join ??

Reply
#6

nothing at all no
Reply
#7

ok can you show me the parts that u put it into because i quickly put this into a blank script and it worked http://pawn.pastebin.com/m784b654a (apart from me calling russia english lol )

Reply
#8

sorry i got the teams wrong xD its

USA
Russia
Romania
Reply
#9

oops i failed i forgot to add the OnPlayerSpawn part


this works :> thanks man but Russia and English textdraws are in the same place.. can i have the cords for another one ? ferther down


EDIT: this isnt working: the team scores arent comming up when someone gets killed
Reply
#10

Ok coord u need is 515,360 and make sure you have inside onplayerdeath gTeam[KILLERID] killcount team ++ to add 1 to the kill count vars which the textdraw update reads from

Sorry for the bad example in this post but I'm out and on my iPhone atm lol

post if you get more problems


EDIT: I copied it from pastebin
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  if(gTeam[killerid] == TEAM_USA)
	{
	  usakillcount++;
	}
	if(gTeam[killerid] == TEAM_ENGLISH)
	{
	  engkillcount++;
	}
	if(gTeam[killerid] == TEAM_RUSSIA)
	{
	  ruskillcount++;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)