Death ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death ? (
/showthread.php?tid=365209)
Death ? -
N0FeaR - 02.08.2012
When i die i get this why?
and have this under SetPlayerSpawn
pawn Код:
}
if(Died[playerid] == 1)
{
SetPlayerInterior(playerid,dint[playerid]);
SetPlayerVirtualWorld(playerid,dworld[playerid]);
//SetPlayerPos(playerid,dx[playerid],dy[playerid],dz[playerid]);
TogglePlayerControllable(playerid,0);
SetPlayerHealthEx(playerid, 1);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SendClientMessage(playerid,COLOR_WHITE,"To accept your death type /accept death");
dx[playerid] = 0;
dy[playerid] = 0;
dz[playerid] = 0;
dint[playerid] = 0;
dworld[playerid] = 0;
return 1;
Re: Death ? -
Devilxz97 - 02.08.2012
pawn Код:
}
if(Died[playerid] == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
//SetPlayerPos(playerid,dx[playerid],dy[playerid],dz[playerid]);
TogglePlayerControllable(playerid,0);
SetPlayerHealthEx(playerid, 1);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SendClientMessage(playerid,COLOR_WHITE,"To accept your death type /accept death");
dx[playerid] = 0;
dy[playerid] = 0;
dz[playerid] = 0;
dint[playerid] = 0;
dworld[playerid] = 0;
return 1;
try change the interior & vw to 0
and test if it's works