Freeze player but not make him invincible
#4

Test it and tell me if it worked

pawn Код:
/// On top of your script
new bool:bFrozen[MAX_PLAYERS];

/// When TogglePlayerControllabe is used:
if(bFrozen[playerid] == true) {
    bFrozen[playerid] = false;
} else {
    bFrozen[playerid] = true;
}

/// Add this under OnPlayerTakeDamage

// other stuff
new Float:fHealth;
GetPlayerHealth(playerid, fHealth);
SetPlayerHealth(playerid, (fHealth - amount));
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: 2 Guest(s)