0 Members and 1 Guest are viewing this topic.
► Next map: htf_Nuclear► Zombie has been kicked. ► Next map: htf_Void► Kamikaze has been kicked. ► Next map: htf_Zajacz► Knifer zombie has been kicked. ► Next map: Bridge
const ZOMBIE_TEAM = 2;type sPlayer = Record IsZombie : boolean;end;var Player: array[1..32] of sPlayer;procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);begin if((GetPlayerStat(Killer, 'Team') = ZOMBIE_TEAM) and (GetPlayerStat(Victim, 'Team') <> ZOMBIE_TEAM)) then begin Player[Victim].IsZombie := true; Command('/setteam' + IntToStr(ZOMBIE_TEAM) + ' ' + IntToStr(Victim)); WriteConsole(0, 'Player ' + IdToName(Victim) + ' has been killed by an zombie and is now infected.', $FFFF0000); if(AlphaPlayers = 0)then Command('/nextmap'); end;end;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);begin if(GetPlayerStat(ID, 'Team') = ZOMBIE_TEAM) then ForceWeapon(ID, 15, 255, 0);end;procedure OnJoinGame(ID, Team: byte);begin Player[ID].IsZombie := false;end;procedure OnJoinTeam(ID, Team: byte);begin if (Team = ZOMBIE_TEAM) and (Player[ID].IsZombie = false) then Command('/setteam1 ' + IntToStr(ID)); if (Team = 1) and (Player[ID].IsZombie = true) then Command('/setteam2 ' + IntToStr(ID)); if (Team <> 1) and (Team <> 2) then Command('/setteam1 ' + IntToStr(ID));end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);begin Player[ID].IsZombie := false; if(AlphaPlayers = 0)then Command('/nextmap');end;procedure OnMapChange(NewMap: string);vari:integer;begin for i := 1 to 32 do begin if GetPlayerStat(i, 'Human') = true then begin Player[i].IsZombie := false; Command('/setteam1 ' + IntToStr(i)); end; end; Command('/kick Zombie');Command('/kick Kamikaze');Command('/kick Knifer zombie');end;