SA-MP Forums Archive
teamscore problem - 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: teamscore problem (/showthread.php?tid=166935)



teamscore problem - LZLo - 10.08.2010

Quote:

forward ScoreUpdate();

new Policescore;

new Swatscore;

new Armyscore;

new Kinascore;

new Terroscore;

new Amcsiscore;

new Columbianoscore;

new Textcores;



on playerdeath
Quote:

if(killerid == TEAM_POLICE)
{
Policescore += 1;
}

if(killerid == TEAM_TERRO)
{
Terroscore += 1;
}

if(killerid == TEAM_ARMY)
{
Armyscore += 1;
}

if(killerid == TEAM_AMCSI)
{
Amcsiscore += 1;
}

if(killerid == TEAM_COLUMBIANO)
{
Columbianoscore += 1;
}

if(killerid == TEAM_KINA)
{
Kinascore += 1;
}

if(killerid == TEAM_SWAT)
{
Swatscore += 1;
}

at the end
Quote:

public ScoreUpdate()
{
new string[100];
TextDrawHideForAll(Textcores);
format(string,sizeof(string),"Rend§rsћg:%d SWAT:%d Katonas˜g:%d Amcsik:%d Kolumbiaiak:%d Kinaiak:%d Terrorist˜k:%d", Policescore,Swatscore,Armyscore,Amcsiscore,Columbi anoscore,Kinascore,Terroscore);
scores = TextDrawCreate(510.000000, 231.000000,string);
TextDrawTextSize(scores,0.500000, 1.000000);
TextDrawSetOutline(scores,0);
TextDrawSetShadow(scores,2);
TextDrawShowForAll(Textcores);
}


public kickingtimer()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(kicking[i] == 1)
{
Kick(i);
}
}
}

what's the problem with this??