Show Number of players on a team on bottom left corner?
#2

You MUST forward this
pawn Код:
forward THplayers();
Add at public OnFilterScriptInIt:
pawn Код:
SetTimer("THplayers", 1000, true); // true makes it repeat all the time

Now we need to public it
pawn Код:
public THplayers()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        new teamcount = 0, string[100];
        if(GetPlayerTeam(i) == TEAM_HUNTER) teamcount++;
        format(string, sizeof(string),"~n~ ~n~ ~n~ ~n~ ~g~Team Hunter Players: %d", teamcount); // the ~n~ makes it go to the bottom
        GameTextForAll(1000, 3);
        return 1;
    }
    return 1;
}
Try this
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)