0 Members and 1 Guest are viewing this topic.
const HK = 36;Function OnPlayerDamage(Victim,Shooter:Byte; Damage:Integer):Integer;var Tmp:Integer; begin case GetPlayerStat(Shooter,'Primary') of [...] 2: begin Tmp := Round(Result * (100 - HK) / 100); if Tmp + GetPlayerStat(Shooter,'Health') < 150 then begin DoDamage(Shooter,-Tmp); end else DoDamage(Shooter,GetPlayerStat(Shooter,'Health') - 150); end; [...] end; end;
10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] Too many script errors! Shutting down server -> "RandomWar"10-06-06 17:52:13 [*] [Error] RandomWar -> (OnPlayerDamage): Exception: Access violation at address 00413D89 in module 'soldatserver.exe'. Read of address 015ABA8C10-06-06 17:52:13 [*] Too many script errors! Shutting down server -> "RandomWar"
if GetPlayerStat(Yah, 'Active') = true then begin
Player: Array [0..32] of Stats;
@Dnmr, Array[0..32] ? Why would you use ID 0 ? Oo
procedure DoVamp(ID: byte; Damage: integer);var heal: integer;beginheal := round((damage*0.4)+0.6);dodamage(ID,-heal);end;
How do I detect a kill by a grenade?
Quote from: DarkCrusade on June 07, 2010, 05:05:53 amHow do I detect a kill by a grenade?You dont, not until 1.5.1 anyway...
if Weapon = 'Grenage' then WriteConsole(0, 'It was a grenade \o/', color);
Procedure OnPlayerKill(Killer,Victim:Byte; Weapon:String); begin if Killer <> Victim then case LowerCase(Weapon) of m79: if Random(1,101) <= M79 then Explosion(Victim,Killer); minimi: if Random(1,101) <= Minimi then GiveRoundsBack(Killer,50); minigun: if Random(1,101) <= Minigun then begin GiveRoundsBack(Killer,MinigunR); GiveBonus(Killer,5); end; flamer: if Random(1,101) <= Flamer then SetEnemiesOnFire(Killer); knife: if Random(1,101) <= Knife then ForceNewKnife(Killer); chainsaw: if Random(1,101) <= Chainsaw then begin RestoreHealth(Killer,150); GiveVest(Killer); end; law: if Random(1,101) <= LAW then ShootNextEnemy(Killer); grenade: if Random(1,101) <= Grenade then end; end;
10-06-07 17:04:50 [*] RandomWar -> [Error] (488:3): Unknown identifier 'grenade'
Var SettFile: String; Begin SettFile := 'YourDirectoryHere.ini'; if FileExists(SettFile) Then BeginTry StuffYouWantToLoad1 := StrToInt(ReadINI(SettFile,'Section','Max_Ping',''); StuffYouWantToLoad2 := StrToInt(ReadINI(SettFile,'Section','Squiddo','');Except WriteLn('Error ocurred while trying to load settings'); end; end else WriteLn('File doesnt exists!');end;//Or something like that.//I cant help much right now, 'coz I'm on my sister's laptop, and I don't got much time.. :P//Later I can post an easier way to help you out.