Quote:
Originally Posted by [XST]O_x
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; }
|
I have tried this. but it messed up. I mean, I'm civilian but it shows me Cop.