19.02.2013, 22:07
I put this code:
How can I freeze the player...?
Код:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 1, 1);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 1, 1, 1, 1, 1);
TogglePlayerControllable(playerid,0);
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetIntVar(damagedid, "JustDied") == 1 || PlayerInfo[damagedid][pDied] == 1)
{
}
return 1;
}

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetIntVar(damagedid, "JustDied") == 1 || PlayerInfo[damagedid][pDied] == 1 || GetIntVar(damagedid, "LoggedInDead") == 1)
{
new Float:hp;
GetPlayerHealth(damagedid, hp);
SetPlayerHealth(damagedid, hp+amount);
}
return 1;
}