Guten Morgen,
Ich versuche grade ein Wanted lable zu machen das nur die Cops sehen können.
Ich hätte folgende Frage an euch:
Könnte es so Funktionieren:
public OnPlayerStreamIn(playerid, forplayerid)
{
if(pInfo[forplayerid][pFraktion] == 1)
{
if(pInfo[playerid][pWanteds] > 0)
{
new wtxt[10+MAX_PLAYER_NAME];
format(wtxt, sizeof wtxt, "{C30000}Wanteds{FFFFFF}: %d",pInfo[playerid][pWanteds]);
WantedsLable[playerid] = CreatePlayer3DTextLabel(forplayerid,wtxt, COLOR_WHITE, 0.0, 0.0, -3.0, 70.0,playerid);
}
}
return 1;
}
{
if(pInfo[forplayerid][pFraktion] == 1)
{
if(pInfo[playerid][pWanteds] > 0)
{
new wtxt[10+MAX_PLAYER_NAME];
format(wtxt, sizeof wtxt, "{C30000}Wanteds{FFFFFF}: %d",pInfo[playerid][pWanteds]);
WantedsLable[playerid] = CreatePlayer3DTextLabel(forplayerid,wtxt, COLOR_WHITE, 0.0, 0.0, -3.0, 70.0,playerid);
}
}
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
if(pInfo[forplayerid][pFraktion] == 1)
{
if(pInfo[playerid][pWanteds] > 0)
{
DeletePlayer3DTextLabel(playerid,WantedsLable[playerid]);
}
}
return 1;
}
{
if(pInfo[forplayerid][pFraktion] == 1)
{
if(pInfo[playerid][pWanteds] > 0)
{
DeletePlayer3DTextLabel(playerid,WantedsLable[playerid]);
}
}
return 1;
}
Mit Freundlichen Grüßen,
Fabi.StaR