[HELP] Team Scores - 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] Team Scores (
/showthread.php?tid=125281)
[HELP] Team Scores -
Flake. - 03.02.2010
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
Re: [HELP] Team Scores -
Flake. - 03.02.2010
can anyone help
sorry for double post
Re: [HELP] Team Scores -
philmckrakin - 03.02.2010
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
Re: [HELP] Team Scores -
Flake. - 03.02.2010
ive loaded this but the textdraw isnt showing :<
Re: [HELP] Team Scores -
philmckrakin - 03.02.2010
EDIT: ok so you see nothing at all when you join ??
Re: [HELP] Team Scores -
Flake. - 03.02.2010
nothing at all no
Re: [HELP] Team Scores -
philmckrakin - 03.02.2010
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 )
Re: [HELP] Team Scores -
Flake. - 03.02.2010
sorry i got the teams wrong xD its
USA
Russia
Romania
Re: [HELP] Team Scores -
Flake. - 03.02.2010
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
Re: [HELP] Team Scores -
philmckrakin - 03.02.2010
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;
}