22.09.2010, 18:25
pawn Код:
new PlayerText3D:PoliceWantedLabel[MAX_PLAYERS][MAX_PLAYERS];
for(new i; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) {
if(GetPlayerWantedLevel(i) > 0) {
for(new j; j <= MAX_PLAYERS; j++) {
if(gTeam[j] == TEAM_COP) { //Or whatever team system you use...
PoliceLabel[j][i] = CreatePlayer3DTextLabel(j,"Wanted",COLOR_ORANGE,0.0,0.0,0.0,40.0,i);
}
}
} else {
DeletePlayer3DTextLabel(PoliceLabel[i][i]);
}
}
}