0 Members and 1 Guest are viewing this topic.
Procedure OnFlagScore(ID, TeamFlag: byte);VarC: Byte;Begin for C 1 to 32 do if GetPlayerStat(C, 'Active') = false then begin WriteConsole(ID,'Capping on an empty server will not get you your 20 exp.' $FFFF0C00); SetScore(ID,GetPlayerStat(ID,'Kills')-20); end; if GetPlayerStat(C, 'Active') = true then begin if GetPlayerStat(ID, 'Team') = GetPlayerStat(C, 'Team') then begin WriteConsole(ID,'There has to be a player on the enemy team for you to get your 20 exp.', $FFFF0C00); SetScore(ID,GetPlayerStat(ID,'Kills')-20); end; if GetPlayerStat(ID, 'Team') <> GetPlayerStat(C, 'Team') then begin if GetPlayerStat(ID, 'IP') = GetPlayerStat(C, 'IP') then begin WriteConsole(ID,'Nice try. Shame I saw it coming huh. No 20 exp for you.', $FFFF0C00); SetScore(ID,GetPlayerStat(ID,'Kills')-20); end; if GetPlayerStat(ID, 'IP') <> GetPlayerStat(C, 'IP') then begin WriteConsole(ID,'+ 20', $FF72FB03); end; end; end;End;
if C <> ID then ...
for C 1 to 32 do
if GetPlayerStat(C, 'Active') = true then begin if GetPlayerStat(ID, 'Team') = GetPlayerStat(C, 'Team') then begin WriteConsole(ID,'There has to be a player on the enemy team for you to get your 20 exp.', $FFFF0C00); SetScore(ID,GetPlayerStat(ID,'Kills')-20); end; if GetPlayerStat(ID, 'Team') <> GetPlayerStat(C, 'Team') then begin if GetPlayerStat(ID, 'IP') = GetPlayerStat(C, 'IP') then begin WriteConsole(ID,'Nice try. Shame I saw it coming huh. No 20 exp for you.', $FFFF0C00); SetScore(ID,GetPlayerStat(ID,'Kills')-20); end; if GetPlayerStat(ID, 'IP') <> GetPlayerStat(C, 'IP') then begin WriteConsole(ID,'+ 20', $FF72FB03); end; end; end;