Jeffry
Das ganze sollte doch so klappen oder?
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid,sInfo[playerid][sSkin]);
if(sInfo[playerid][sIsDeath] == 1)
{
SetTimerEx("StartDeathAnim", 500, false, "i", playerid);
return 1;
}
if(IstSpielerInFraktion(playerid,1))
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,218.8853,67.6345,1005.0391);
return 1;
}
else if(IstSpielerInFraktion(playerid,2))
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,230.1551,113.0730,1003.2188);
return 1;
}
else if(IstSpielerInFraktion(playerid,3))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2066.9260,-1391.1484,1717.2209);
return 1;
}
return 1;
}
forward StartDeathAnim(playerid);
public StartDeathAnim(playerid)
{
printf("ok");
PreloadPlayerAnims(playerid);
ClearAnimations(playerid);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, sInfo[playerid][sDeathWorld]);
SetPlayerInterior(playerid, sInfo[playerid][sDeathInterior]);
SetPlayerPos(playerid, sInfo[playerid][sDeathPosX], sInfo[playerid][sDeathPosY], sInfo[playerid][sDeathPosZ]);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("DeathTimer", 1000*60*2, false, "i", playerid);
TogglePlayerControllable(playerid,0);
return 1;
}
MfG. Dome
//e Leider wird die Animaion nicht gemacht.