guys i made this script But onplayer killerid kills playerid textdraw shows value in 1000 another kill 2000 like this need help
PHP Code:
if(TDM[killerid] == 1)
{
new gTeam = GetPlayerTeam(killerid);
new eTeam = GetPlayerTeam(playerid);
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(gTeam == Team_Magma && eTeam == Team_Aqua)
{
Magma_score++;
format(string,sizeof(string),"{FFFFFF}Magma Killer {84F6D7}%s {FFFFFF}Has Killed Aqua Player {84F6D7}%s.",PlayerName(killerid),PlayerName(playerid));
SendClientMessage(i,COLOR_ORANGE,string);
new td[128];
format(td,sizeof(td),"~r~Magma~n~Score (%d)",Magma_score);
TextDrawSetString(SCORE_TD[0],td);
TextDrawShowForPlayer(playerid, SCORE_TD[0]);
GivePlayerMoney(i,500);
}
if(gTeam == Team_Aqua && eTeam == Team_Magma)
{
Aqua_score++;
new td[128];
format(string,sizeof(string),"{FFFFFF}Aqua Killer {84F6D7}%s {FFFFFF}Has Killed Magma Player {84F6D7}%s.",PlayerName(killerid),PlayerName(playerid));
SendClientMessage(i,COLOR_ORANGE,string);
format(td,sizeof(td),"~b~Aqua~n~Score (%d)",Aqua_score);
TextDrawSetString(SCORE_TD[1],td);
TextDrawShowForPlayer(playerid, SCORE_TD[1]);
GivePlayerMoney(i,500);
}
}
}