Freeze player but not make him invincible
#1

Код:
	    GetPlayerName(playerid, playerName);
		TogglePlayerControllable(playerid, 0);
		ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0, 1);
		SendClientMessage(playerid, COLOR_LIGHTRED, "You have been seriously wounded and you aren't able to walk any further!");
		if(PlayerInfo[playerid][pSex] = 1)
		{
		    format(string,sizeof(string), "%s falls to the ground because of his wounds.", playerName);
		}
		else if(PlayerInfo[playerid][pSex] = 2)
		{
		    format(string,sizeof(string), "%s falls to the ground because of her wounds.", playerName);
		}
        ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
The problem is I use TogglePlayerControllable but I want the player to still be vulnerable to damage, unfortunately TogglePlayerControllable makes him invincible. How would I be able to freeze a player without making him invincible?
Reply


Messages In This Thread
Freeze player but not make him invincible - by Prostilov - 23.04.2012, 17:21
Re: Freeze player but not make him invincible - by Claude - 23.04.2012, 17:40
Re: Freeze player but not make him invincible - by Prostilov - 23.04.2012, 19:31
Re: Freeze player but not make him invincible - by Claude - 23.04.2012, 19:37

Forum Jump:


Users browsing this thread: 4 Guest(s)