Animationen in 0.3b
#10

ahh i see you know my script.

here:

Код:
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;
}
Reply


Messages In This Thread
Animationen in 0.3b - by Psycho77 - 07.11.2010, 09:30
Re: Animationen in 0.3b - by Johndaonee - 07.11.2010, 10:20
Re: Animationen in 0.3b - by Celson - 07.11.2010, 11:02
Re: Animationen in 0.3b - by Psycho77 - 07.11.2010, 11:49
Re: Animationen in 0.3b - by Johndaonee - 07.11.2010, 11:51
Re: Animationen in 0.3b - by Psycho77 - 07.11.2010, 11:56
Re: Animationen in 0.3b - by Biesmen - 07.11.2010, 12:10
Re: Animationen in 0.3b - by Psycho77 - 07.11.2010, 12:19
Re: Animationen in 0.3b - by Biesmen - 07.11.2010, 12:21
Re: Animationen in 0.3b - by Psycho77 - 07.11.2010, 12:29

Forum Jump:


Users browsing this thread: 5 Guest(s)