29.09.2010, 12:36
Doesn't work, here check my code :
When the player dies it freezes him and when he does the command it releases him, and afterwards the death animation is plaid, can anyone help me fix so that when the player dies it will go on
"flip animation" and freeze him, and when he uses the command it will thaw him and spawn him at a certain point.
Here is my command :
When the player dies it freezes him and when he does the command it releases him, and afterwards the death animation is plaid, can anyone help me fix so that when the player dies it will go on
"flip animation" and freeze him, and when he uses the command it will thaw him and spawn him at a certain point.
Here is my command :
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerControllable(playerid, 0);
pdeath[playerid] = 1;
SendClientMessage(playerid, 0xFF4646FF, "bbbbbdfgdfgdfg !");
SetPlayerPos(playerid,1583.4307,-1634.7228,13.3905);
return 1;
}
PHP код:
if (strcmp(cmdtext, "/acceptdeath", true) == 0)
{
if(pdeath[playerid] == 0) return SendClientMessage(playerid, 0xFF4646FF, "You are not dead.");
GivePlayerMoney(playerid, -500);
pdeath[playerid] = 0;
TogglePlayerControllable(playerid, 1);
return 1;
}