Keine Schwere Sache, du brauchst nur die Definition für Farbe und den Wantedgrund...
new Text3D:wantedtextdraw[MAX_PLAYERS];
new _str[100],
name[MAX_PLAYER_NAME],
verbrechen[128];
#define Rotefarbe /*deine Rote Farbe*/
public OnPlayerSpawn(playerid)
{
wantedlevel[playerid] = GetPlayerWantedLevel(playerid);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
GetPlayerName(playerid, name, sizeof(name));
verbrechen= "/*Dein Define für die Wanted Verbrechen*/"
format(_str, sizeof(_str), "Name %s /n Wanteds %i /n Verbrechen %s",name , wantedlevel, verbrechen);
wantedtextdraw[playerid] = CreatePlayer3DTextLabel(_str,0x008080FF,x,y,z+3,40.0,0);
Attach3DTextLabelToPlayer (wantedtextdraw[playerid], playerid, 0.0, 0.0, 0.0+4)
return 1;
}
public OnPlayerUpdate(playerid)
{
wantedlevel[playerid] = GetPlayerWantedLevel(playerid);
format(_str, sizeof(_str), "Name %s /n Wanteds %i /n Verbrechen %s",name , wantedlevel, verbrechen);
if(wantedlevel != 0) { UpdatePlayer3DTextLabelText(playerid, wantedtextdraw[playerid], 0x008080FFBE, _str); }
else { UpdatePlayer3DTextLabelText(playerid, wantedtextdraw[playerid], Rotefarbe, _str); }
return 1;
}