23.04.2012, 19:37
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));