0 Members and 1 Guest are viewing this topic.
var Invincible: array[1..32] of boolean;function OnCommand(ID: Byte; Text: string): boolean;begin Result := false; if Text = '/invin' then if Invincible[ID] then begin WriteConsole(ID,'Invincibility has been disabled.',$FFFFFFFF); Invincible[ID] := false; end else begin WriteConsole(ID,'Invincibility has been enabled.',$FFFFFFFF); Invincible[ID] := true; end;end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);begin Invincible[ID] := false;end;function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin if Invincible[Victim] then Result := 0 else Result := Damage;end;
if Invincible[Victim] then Result := 0 else Result := Damage;
if Invincible[Victim] then Result := -9999 else Result := Damage;
My new password is secure as shit Mate, I am not sure Shit is even secured nowadays.
It doesn't work :/But it makes me immortal xD
uhh...isn't that the point of the script?
Cool... but isint it unfair to the other players?