Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

tdm score count problem

$
0
0
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 
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(playeridSCORE_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(playeridSCORE_TD[1]);
                
GivePlayerMoney(i,500);
             }
        }
    } 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>