ahh i see you know my script.
Код:
public OnPlayerSpawn(playerid)
{
ClearAnimations(playerid);
PreloadAnimLib(playerid,"CRACK");
if(Spieler[playerid][Verletzt] == 1)
{
KillTimer(todtimer1[playerid]);
KillTimer(todtimer2[playerid]);
SetPlayerPos(playerid,Spieler[playerid][posx],Spieler[playerid][posy],Spieler[playerid][posz]);
SetPlayerInterior(playerid, Spieler[playerid][interior]);
SetPlayerVirtualWorld(playerid,Spieler[playerid][virtualw]);
freeze(playerid);
todtimer1[playerid] = SetTimerEx("tot1",180000,0,"i",playerid);
Spieler[playerid][Spawn]--;
ApplyAnimation(playerid,"CRACK","crckdeth2",3.0,1,1,1,1,0);
}
if(Spieler[playerid][Tot] == 1)
{
KillTimer(todtimer1[playerid]);
KillTimer(todtimer2[playerid]);
SetPlayerPos(playerid,Spieler[playerid][posx],Spieler[playerid][posy],Spieler[playerid][posz]-120);
SetPlayerInterior(playerid,Spieler[playerid][interior]);
SetPlayerInterior(playerid,Spieler[playerid][interior]);
SetPlayerVirtualWorld(playerid,Spieler[playerid][virtualw]);
todtimer2[playerid] = SetTimerEx("tot2",60000,0,"i",playerid);
Spieler[playerid][Verletzt] = 0;
Spieler[playerid][Tot] = 1;
SetPlayerCameraPos(playerid,Spieler[playerid][posx],Spieler[playerid][posy],Spieler[playerid][posz]+75);
SetPlayerCameraLookAt(playerid,Spieler[playerid][posx],Spieler[playerid][posy],Spieler[playerid][posz]);
Spieler[playerid][Spawn]--;
freeze(playerid);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
ClearAnimations(playerid);
SendClientMessage(playerid,0xFF9190FF,"Du bist schwerverletzt, rufe mit /service einen Notarzt!");
GetPlayerPos(playerid,Spieler[playerid][posx],Spieler[playerid][posy],Spieler[playerid][posz]);
Spieler[playerid][interior] = GetPlayerInterior(playerid);
Spieler[playerid][virtualw] = GetPlayerVirtualWorld(playerid);
Spieler[playerid][Verletzt] = 1;
return 1;
}
stock PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
return 1;
}