0 Members and 2 Guests are viewing this topic.
hah!:)very fun,but server shutdown!!!!
var Realistic: boolean; Hits: array[1..32] of array[1..32] of byte; Dmg: array[1..32] of array[1..32] of longint;procedure ActivateServer();begin if StrtoInt(ReadINI('Soldat.ini','GAME','Realistic_Mode','0')) = 1 then Realistic := true else Realistic := false;end;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);var i: byte;begin if Killer <> Victim then begin WriteConsole(Victim, GetPlayerStat(Killer, 'Name') + ' killed you with ' + iif(Hits[Victim][Killer] = 1,'1 hit using ', InttoStr(Hits[Victim][Killer]) + ' hits using ') + Weapon, $FF000000); WriteConsole(Victim, 'You hurt him using ' + iif(Hits[Killer][Victim] = 1, '1 hit doing ', InttoStr(Hits[Killer][Victim]) + ' hits doing ') + iif(Realistic, InttoStr(Round(1.54 * Dmg[Killer][Victim])), InttoStr(Dmg[Killer][Victim])) + '% damage', $FF000000); for i := 1 to 32 do begin Hits[Victim][i] := 0; Dmg[Victim][i] := 0; end; end;end;function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;begin Result := Damage; Hits[Victim][Shooter] := Hits[Victim][Shooter] + 1; if Damage <= GetPlayerStat(Victim,'Health') then Dmg[Victim][Shooter] := Dmg[Victim][Shooter] + Damage else Dmg[Victim][Shooter] := Dmg[Victim][Shooter] + GetPlayerStat(Victim,'Health');end;procedure OnPlayerRespawn(ID: byte);var i: byte;begin for i:= 1 to 32 do begin Dmg[i][ID] := 0; Hits[i][ID] := 0; end;end;
- Whan some1 kill some1 with usscom on screen write "selfkill"...
- Can you do some1 write commend "/me" or "/deadinfo" to look dead info
Quote from: Miszkol_ on April 23, 2008, 03:15:45 am- Whan some1 kill some1 with usscom on screen write "selfkill"...soldat server seems to give inaccurate info about who kills who with what when it comes to the ussocom I can add a manual check to replace "Selfkill" with "USSOCOM" thoughQuote from: Miszkol_ on April 23, 2008, 03:15:45 am- Can you do some1 write commend "/me" or "/deadinfo" to look dead infoHow would this work exactly? If player A kills player B, then when player B does /deadinfo, it regives him the info of the last player who killed him (player A)?
Quote from: DorkeyDear on April 23, 2008, 02:48:32 pmQuote from: Miszkol_ on April 23, 2008, 03:15:45 am- Whan some1 kill some1 with usscom on screen write "selfkill"...soldat server seems to give inaccurate info about who kills who with what when it comes to the ussocom I can add a manual check to replace "Selfkill" with "USSOCOM" thoughQuote from: Miszkol_ on April 23, 2008, 03:15:45 am- Can you do some1 write commend "/me" or "/deadinfo" to look dead infoHow would this work exactly? If player A kills player B, then when player B does /deadinfo, it regives him the info of the last player who killed him (player A)?Yes.When I write command /deadinfo i want description of my dead AND ONLY IF I WRITE IT, because on my server is more massages(when i win money[cs script] and more more others massages...)Can you do this script description of ALL people which I shooting ?? Example:You Give:- 1 bullet of Desert eagle and 30% hp to xXx- 3 bullets of Ak-74 and 110% hp to yYy and DeadYou take:- 1 bullet of berret and 200% hp and Dead ^^Can you do it??
OK i wait to saturdey's night for this script.
[*] Compiling DeathInfo -> core.pas... [*] DeathInfo -> [Error] (15:92): String error [*] DeathInfo -> [Error] (15:92): Syntax error
Hey, i hope you can help me with this mistake:Code: [Select] [*] Compiling DeathInfo -> core.pas... [*] DeathInfo -> [Error] (15:92): String error [*] DeathInfo -> [Error] (15:92): Syntax error
it doesnt show with witch weapon you hit the guy that kills you
Thank you, now it works EDIT: How can I change the text color ?