Well,
- You got ID for the killer and ID for the victim.
- Team isn't defined (use GetPlayerStat).
- Why call the weapon var 'chainsaw'?
- You forgot a ' in the setteam command (ending the string)
This script will work if cInfo is defined earlier.
procedure OnPlayerKill(Killer, Victim: Byte; Weapon: String);
begin
if GetPlayerStat(Victim, 'Team') = 1 then
if GetPlayerStat(Killer, 'Team') = 2 then
if Weapon = 'Chainsaw' then begin
Command('/setteam2 ' + inttostr(Victim));
WriteConsole(Victim, 'You got raped', cInfo)
end;
end;