Function SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pTot] == 1 && PlayerInfo[playerid][pLevel] > 2 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
if(IsPlayerInFrac(playerid, 1))
{
SetPlayerColor(playerid,NAMECOLOR_LSCOP);
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
TextDrawDestroy(speedo1[playerid]);
TextDrawDestroy(speedo2[playerid]);
TextDrawDestroy(speedo3[playerid]);
TextDrawDestroy(speedo4[playerid]);
TextDrawDestroy(CarBalken);
TogglePlayerControllable(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,895.1538,-1119.9735,24.5863);
SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
SetPlayerCameraLookAt(playerid, 910.9415,-1102.5831,34.3235);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
FreezePlayer(playerid);
return 1;
}
if(PlayerInfo[playerid][pTot] == 1 && PlayerInfo[playerid][pLevel] > 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
SendClientMessage(playerid, COLOR_YELLOW, "{FFFF00}==================== Krankenhaus ====================");
SendClientMessage(playerid, COLOR_ORANGE, "{FAFAFA}Du bist gestorben und wirst von einem Arzt behandelt.");
SendClientMessage(playerid, COLOR_ORANGE, "{FAFAFA}Die Behandlung dauert 1 Minute, warte bitte.");
SetPlayerSpawn(playerid);