Hallo, ich habe das Problem, das immer nur ein Player die Wanteds sieht.
Der Code:
public WantedShow()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(WantedLevel[i] == 0) // Standart Variable im Godfather
{
// Wenn der Spieler 0 Wanteds hat passiert nichts.
return 1;
}
if(WantedLevel[i] == 1) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("1 Wanted", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3);
return 1;
}
if(WantedLevel[i] == 2) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("2 Wanteds", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3);
return 1;
}
if(WantedLevel[i] == 3) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("3 Wanteds", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3); return 1;
}
if(WantedLevel[i] == 4) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("4 Wanteds", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3); return 1;
}
if(WantedLevel[i] == 5) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("5 Wanteds", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3); return 1;
}
if(WantedLevel[i] == 6) // Standart Variable im Godfather
{
new Text3D:label = Create3DTextLabel("6 Wanteds", COLOR_RED, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, i, 0.0, 0.0, 0.3); return 1;
}
}
return 1;
}
Kann mir jemand helfen? Wäre wircklich sehr dankbar!