teamscore problem
#1

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??
Reply


Messages In This Thread
teamscore problem - by LZLo - 10.08.2010, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)