0 Members and 1 Guest are viewing this topic.
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin Result:= Damage; DoDamage(Shooter,Random(-10,-1));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if (PrimaryNum <> 16) and (PrimaryNum <> 255) then ForceWeapon(ID,16,255,0);end;
[Error] (5:35): Invalid number of parameters
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin Result:= Damage; DoDamage(Shooter,Random(-10,-1));end; //This one ??????????????procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if (PrimaryNum <> 16) and (PrimaryNum <> 255) then ForceWeapon(ID,16,255,0);end;
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); DoDamage(Shooter,-R);end; procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 ForceWeapon(ID,15,255,0);end;
Function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); DoDamage(Shooter,Shooter,-R);end; procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 ForceWeapon(ID,15,255,0);end;
Function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); if R + GetPlayerStat(Shooter,'Health') <= 150 then DoDamage(Shooter,Shooter,-R); else DoDamage(Shooter,Shooter,GetPlayerStat(Shooter,'Health') - 150);end; Procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 ForceWeapon(ID,15,255,0);end;
Function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); DoDamage(Shooter,Shooter,-R);end; procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 then ForceWeapon(ID,15,255,0);end;
Function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); if R + GetPlayerStat(Shooter,'Health') <= 150 then DoDamage(Shooter,Shooter,-R); else DoDamage(Shooter,Shooter,GetPlayerStat(Shooter,'Health') - 150);end; Procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 then ForceWeapon(ID,15,255,0);end;
forceweaponb -> [Error] (9:3): Identifier expected
Function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;var R:Byte;begin Result:= Damage; R := Random(1,11); if R + GetPlayerStat(Shooter,'Health') <= 150 then DoDamage(Shooter,Shooter,-R) else DoDamage(Shooter,Shooter,GetPlayerStat(Shooter,'Health') - 150);end; Procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if PrimaryNum <> 15 then ForceWeapon(ID,15,255,0);end;
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer; Weapon: byte): integer;begin Result:= Damage; DoDamage(Shooter,Shooter,Random(-10,-1));end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if GetPlayerStat(ID,'Team') = 2 then if (PrimaryNum <> 15) and (PrimaryNum <> 255) then ForceWeapon(ID,15,255,0);end;