Different Gametexts for Different Team
#1

How can i make diff gametexts for diff teams?

Say, One team wins and the other team loses, how can i make diff gametexts for each game?

Note: I have the teams defined =P
Reply
#2

pawn Код:
switch(gTeam[playerid])
{
    case TEAM_BLUE: GameTextForPlayer(playerid, "~b~Welcome to team blue~n~the good side of live!", 5000, 1);
    case TEAM_RED: GameTextForPlayer(playerid, "~r~Welcome to team red~n~~n~~n~We have cookies!!!", 5000, 6);
}
Is that example enough ?
Reply
#3

pawn Код:
GameTextForTeam(team, string[], time, style)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gTeam[i] == team)
            {
                GameTextForPlayer(i, string, time, style);
            }
        }
    }
}
Reply
#4

Quote:
Originally Posted by MadeMan
pawn Код:
GameTextForTeam(team, string[], time, style)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gTeam[i] == team)
            {
                GameTextForPlayer(i, string, time, style);
            }
        }
    }
}

Surley thats getting a little bit complicated, how do you want it
Random different styles

or for example if TEAM1 wins it says something different then it would when TEAM2 wins?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)