17.02.2012, 07:06
What happens here now is once a player died he falls onto the ground unconscious, however he stays on the ground forever. I need it that the player automatically regains control an can walk again.
Thank you in advance.
Thank you in advance.
pawn Код:
if(Died[playerid] == 1)
{
SetPlayerInterior(playerid,dint[playerid]);
SetPlayerVirtualWorld(playerid,dworld[playerid]);
SetPlayerPos(playerid,dx[playerid],dy[playerid],dz[playerid]);
TogglePlayerControllable(playerid,0);
SetPlayerHealth(playerid, 1);
SetTimerEx("ApplyThatAnim",120,false,"i",playerid);
GameTextForPlayer(playerid,"You've fallen unconscious!",120,5);
SendClientMessage(playerid,COLOR_WHITE,"Once awake, please role play your injury.");
dx[playerid] = 0;
dy[playerid] = 0;
dz[playerid] = 0;
dint[playerid] = 0;
dworld[playerid] = 0;
return 1;
}