Hallo ihr da
Ich habe das Problem, wenn ich sterbe lande ich nicht im Krankenhaus, ich werde stattdessen einfach nur wieder neu gespawnt.
Der Code:
new Float:health;
GetPlayerHealth(playerid,health);
health = 100.0;
printf("SetPlayerHealth(playerid,%f);",health);
SetPlayerHealth(playerid,health);
if(PlayerInfo[playerid][pTod] == 1)
{
SetTimer("TOTTimer",60000,1);
SetPVarInt(playerid,"tot_Skin",GetPlayerSkin(playerid));
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, "{FFA500}Information{FFFFFF}: Durch deine schweren Verletzungen liegst du im Koma!");
SendClientMessage(playerid, COLOR_WHITE, "{FFA500}Information{FFFFFF}: Du befindest dich für 2 Minuten im Krankenhaus.");
SendClientMessage(playerid, COLOR_WHITE, "{FFA500}Information{FFFFFF}: In 2 bis 3 Minuten kommst du wieder raus, da du gerade behandelt wirst.");
SendClientMessage(playerid, COLOR_WHITE, " ");
SendClientMessage(playerid, COLOR_WHITE, " ");
SetPlayerPos(playerid,941.7925,1734.3978,21.1277);
SetPlayerCameraPos(playerid, 993.5776,1653.3435,10.3279);
SetPlayerCameraLookAt(playerid, 949.7623,1748.0996,26.2525);
TogglePlayerControllable(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerColor(playerid, COLOR_ZIVI);
return 1;
}
Ich habe auch schon versucht,
SetPlayerSpawn(playerid);
SpawnPlayer(playerid);
einzufügen, hat aber nichts am Problem geändert.
Ich hoffe ihr wisst woran es liegt.