21.06.2015, 10:31
Something like that:
pawn Код:
#define TEAM_POLICE 0
#define TEAM_MAFIA 1
#define TEAM_BLAH 2
#define TEAM_CIVILIAN 3
new teamNames[][] = {
{"Police"},
{"Mafia"},
{"Blah"},
{"Civilian"}
};
GetPlayerTeamName(playerid)
{
new name[24];
format(name, sizeof name, "%s", teamNames[GetPlayerTeam(playerid)]);
return name;
}