12.03.2011, 17:00
pawn Код:
new PlayerText3D:WantedLabel[MAX_PLAYERS][MAX_PLAYERS];
new LabelCreated[MAX_PLAYERS][MAX_PLAYERS];
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsACop(i))
{
for(new suspect=0; suspect<MAX_PLAYERS; suspect++)
{
if(LabelCreated[i][suspect] == 0)
{
if(WantedLevel[suspect] >= 1)
{
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
WantedLabel[i][suspect] = CreatePlayer3DTextLabel(i,text,COLOR_LIGHTRED,0,0,0,25.0,suspect,INVALID_VEHICLE_ID,0);
LabelCreated[i][suspect] = 1;
}
}
else
{
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
UpdatePlayer3DTextLabelText(i, WantedLabel[i][suspect], COLOR_LIGHTRED, text);
}
}
}
}