Hallöchen Brötchen,
folgendes Player3DTxetLabel soll erscheinen, solange die Spawnprotection aktiv ist. Leider wird dabei nichts angezeigt. Wo liegt mein Denkfehler?
new PlayerText3D:SpawnProtectionInfo[MAX_PLAYERS];
stock SetSpawnProtection(playerid)
{
SpawnProtectionInfo[playerid] = CreatePlayer3DTextLabel(playerid, "SPAWN PROTECTION", C_RED, 0.0, 0.0, 0.0, 50.0, playerid, INVALID_VEHICLE_ID, 0);
if(GetPlayerVirtualWorld(playerid) == 0) SetTimerEx("EndSpawnProtection", 3000, false, "i", playerid);
else //...
return 1;
}
forward EndSpawnProtection(playerid);
public EndSpawnProtection(playerid)
{
DeletePlayer3DTextLabel(playerid, SpawnProtectionInfo[playerid]);
return 1;
}