Hey Guys.
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
var
human: boolean;
killedby: string;
begin
killedby := IDToName(Killer);
human := GetPlayerStat(Victim,'Human')
begin
if (human = true) And (killedby = 'Exasador') then
begin
Command('/SETTEAM3 ' + inttostr(Victim));
Command('/SAY Testing 123');
end;
end;
end;
Its meant to change a player to team 3 if they are killed by Exasador exept it doesnt seem to be activating.
Exasador happens to be a bot btw. Any ideas?