27.11.2010, 20:22
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerControllable(playerid, 0);
pdeath[playerid] = 1;
SendClientMessage(playerid, 0xFF4646FF, "You are Died Type /acceptdeath For Accept your Avoid Death !");
SetPlayerPos(playerid,1583.4307,-1634.7228,13.3905);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
new Float
, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
---------------------------------------------------------------------------------------------------------------------
i Got /acceptdeath System but when i am Dead
it Dont make me to my Pos example i am dead at Idlewood it teleport me at
LSPD
But, when he dies it spawns him back while doing the animation, how can I make him do the animation, while staying exactly where he died ? and then after using the command moving him to a certain point ! ?
{
TogglePlayerControllable(playerid, 0);
pdeath[playerid] = 1;
SendClientMessage(playerid, 0xFF4646FF, "You are Died Type /acceptdeath For Accept your Avoid Death !");
SetPlayerPos(playerid,1583.4307,-1634.7228,13.3905);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,0,0,1,0);
new Float

GetPlayerPos(playerid,x,y,z);
---------------------------------------------------------------------------------------------------------------------
i Got /acceptdeath System but when i am Dead
it Dont make me to my Pos example i am dead at Idlewood it teleport me at
LSPD
But, when he dies it spawns him back while doing the animation, how can I make him do the animation, while staying exactly where he died ? and then after using the command moving him to a certain point ! ?