Hey ich habe das Problem das ich nach dem Tot immernoch am Friedhof gespawnt werde aber wieso ?
Jeffry:
hast du ein Plan ?
public OnPlayerSpawn(playerid)
{
if(sInfo[playerid][PTot] == 1)
{
SetPlayerVirtualWorld(playerid,89);
SetPlayerPos(playerid,1760.8271,-1895.8221,13.5615);
SetPlayerFacingAngle(playerid,271.5753);
SetCameraBehindPlayer(playerid);
}
else if(sInfo[playerid][jailtime] > 0)
{
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetPlayerPos(playerid,sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz]);
SetCameraBehindPlayer(playerid);
}
else
{
if(sInfo[playerid][spawnchange]==0)
{
SetPlayerPos(playerid,1760.8271,-1895.8221,13.5615);
SetPlayerFacingAngle(playerid,268.2114);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetCameraBehindPlayer(playerid);
}
if(sInfo[playerid][spawnchange]==1)
{
new fID;
fID = sInfo[playerid][fraktion];
SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
SetPlayerInterior(playerid, fInfo[fID][f_inter]);
SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe1], fInfo[fID][f_ammo1]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe2], fInfo[fID][f_ammo2]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe3], fInfo[fID][f_ammo3]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe4], fInfo[fID][f_ammo4]);
}
}
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(sInfo[playerid][PTot] == 1)
{
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"Du bist soeben gestorben!");
SendClientMessageEx(playerid,weiß,"Gleich wird ein Wunder passieren!");
SetTimer("sekunde",sInfo[playerid][tott],0);
SetPlayerVirtualWorld(playerid,89);
SetPlayerPos(playerid,816.6987,-1103.0229,25.7914);
}
if(sInfo[playerid][jailtime] > 0)
{
SendClientMessageEx(playerid,IGELB,"Du musst deine Zeit im Knast noch absitzen!");
SetTimer("sekunde",sInfo[playerid][jailtime],0);
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetPlayerPos(playerid,sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz]);
}
else
{
SetSpawnInfo(playerid,0,sInfo[playerid][Skin],0,0,0,0,0,0,0,0,0,0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
}
return 1;
}