Guten Tag, ich versuche seid langer Zeit eine 3D TextLabel Wanted Anzeige über den Verbrecher Köpfen mit ihrer Wantedanzahl zu machen die NUR für Cops (Frak ID 1, 2, 3) sichtbar sind! Ich habe viele Thread gesehen wo nach soetwas gefragt wurde aber NIE kam eine richtige antwort falls doch bitte gibt mir den Link doch.
-Vorstellung-
- Weißer 3D TextLabel
- Nur für Cops sichtbar
- Inhalt: Name[ID]Wanteds
-Gegenleistung-
- Leider habe ich kein Geld deswegen sry.
- Dein Text in meiner Signatur verewigt.
- Mache dir eine Signatur + Avatar.
- Mache dir Keybinder prof. mit GUI (ahk)
-Bestand-
Leider nichts wertvolles denke ich:
Tag mismatch 3D Textlabel
Brauche Hilfe bei 3D Text!
-Benötigt-
Was vllt/evtl benötigt wird poste einfach mal alles:
Abfrage ob der Spieler Cop ist:
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
format(var, 32, "Wanted=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
new WantedPoints[MAX_PLAYERS];
new WantedLevel[MAX_PLAYERS];
Wantedlevel,
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(WantedLevel[playerid] >= 1)
public SetPlayerCriminal(playerid,declare,reason[])
{//example: SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
if(IsPlayerConnected(playerid))
{
PlayerInfo[playerid][pCrimes] += 1;
new points = WantedPoints[playerid];
new turned[MAX_PLAYER_NAME];
new turner[MAX_PLAYER_NAME];
new turnmes[128];
new wantedmes[128];
new wlevel;
strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);
GetPlayerName(playerid, turned, sizeof(turned));
if (declare == 255)
{
format(turner, sizeof(turner), "Unknown");
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
}
else
{
if(IsPlayerConnected(declare))
{
GetPlayerName(declare, turner, sizeof(turner));
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255);
strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255);
}
}
format(turnmes, sizeof(turnmes), "Du hast ein Verbrechen begangen ( %s ). Reporter: %s.",reason,turner);
SendClientMessage(playerid, COLOR_LIGHTRED, turnmes);
if(points > 0)
{
new yesno;
if(points == 3) { if(WantedLevel[playerid] != 1) { WantedLevel[playerid] = 1; wlevel = 1; yesno = 1; } }
else if(points >= 4 && points <= 5) { if(WantedLevel[playerid] != 2) { WantedLevel[playerid] = 2; wlevel = 2; yesno = 1; } }
else if(points >= 6 && points <= 7) { if(WantedLevel[playerid] != 3) { WantedLevel[playerid] = 3; wlevel = 3; yesno = 1; } }
else if(points >= 8 && points <= 9) { if(WantedLevel[playerid] != 4) { WantedLevel[playerid] = 4; wlevel = 4; yesno = 1; } }
else if(points >= 10 && points <= 11) { if(WantedLevel[playerid] != 5) { WantedLevel[playerid] = 5; wlevel = 5; yesno = 1; } }
else if(points >= 12 && points <= 13) { if(WantedLevel[playerid] != 6) { WantedLevel[playerid] = 6; wlevel = 6; yesno = 1; } }
else if(points >= 14) { if(WantedLevel[playerid] != 10) { WantedLevel[playerid] = 10; wlevel = 10; yesno = 1; } }
if(WantedLevel[playerid] >= 1) { if(gTeam[playerid] == 3) { gTeam[playerid] = 4; } }
if(yesno)
{
format(wantedmes, sizeof(wantedmes), "Derzeitiges Wantedlevel: %d", wlevel);
SendClientMessage(playerid, COLOR_YELLOW, wantedmes);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
{
format(cbjstore, sizeof(turnmes), "HQ: An alel Einheiten - Reporter: %s",turner);
SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
format(cbjstore, sizeof(turnmes), "HQ: Verbrechen: %s, Wantedlevel: %s",reason,turned);
SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
}
}
}
}
}
}//not connected
}
//Edit: Frage wegen Signatur: