TextDrawSetString
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerConnect(playerid) || IsPlayerConnect(killerid)) // you use to don't crash's severs
    {
        pKills[killerid] ++;
        pDeaths[playerid] ++;
        if(roundinprogress == true)
        {
            new string[128];
            SpawnInRound(playerid);
            if(gTeam[playerid] == 0)
            {
                if(killerid == INVALID_PLAYER_ID)
                {
                    AXISDEATHS ++;
                }
                if(killerid != INVALID_PLAYER_ID)
                {
                    ALLIESKILLS ++;
                }
            }
            if(gTeam[playerid] == 1)
            {
                if(killerid == INVALID_PLAYER_ID)
                {
                    ALLIESDEATHS ++;
                }
                if(killerid != INVALID_PLAYER_ID)
                {
                    AXISKILLS ++;
                }
            }
            format(string, sizeof(string),        "  Allies: %i/%i                                                      Axis: %i/%i", ALLIESKILLS, ALLIESDEATHS, AXISKILLS, AXISDEATHS);
            TextDrawSetString(RoundTxtDrw, string);
            TextDrawShowForAll(RoundTxtDrw
        }
    }
    return 1;
}
Reply


Messages In This Thread
TextDrawSetString - by new121 - 19.03.2012, 02:26
Re: TextDrawSetString - by DarkScripter - 19.03.2012, 03:01
Re: TextDrawSetString - by -Rebel Son- - 19.03.2012, 03:23
Re: TextDrawSetString - by new121 - 19.03.2012, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)