Hey,
Ich habs shcons elber gemacht und es halt leide rnicht funktioniert und nun hab eich es mal mittels iRFT seine Inc getestret doch es geht auch nicht
[ TOOL ] Desktop Check Version 0.1
Der OnPlayerUpdate Callback muss iwie Fehlerhaft ab 0.3z geworden sein ?!?
Hier mein Code
stock UpdateNametag(playerid) {
new namestr[MAX_PLAYER_NAME + 40], Float: health, healthstr[20] = "/",healthvar , Float: healthv;
GetPlayerHealth(playerid,health);
healthv = floatround(health,floatround_round) / 10;
healthvar = floatround(healthv,floatround_ceil);
if(PlayerInfo[playerid][aduty]) healthstr = "Aduty";
if(IsPlayerOnDesktop(playerid)) healthstr = "AFK / Desktop";
else {
format(healthstr,sizeof(healthstr),"");
for(new i; i < healthvar; i++) strcat(healthstr,"|");
}
if(strlen(healthstr) == 1) format(healthstr,sizeof(healthstr),"/");
format(namestr,sizeof(namestr),"%s (%i)\n["html_red"%s"html_white"]",PlayerInfo[playerid][_name],playerid,healthstr);
Update3DTextLabelText(PlayerInfo[playerid][nametag], white, namestr);
}
Und der Spieler ist Ingame
Gruss