Here the function for Bonus
i have try use a function if like : if(score<=5000) return None;PRand = GetRandomPlayer();
if (PRand != None)
if(score<=5000) return None; // if player have less than 5000 point = no bonus
{
if (kakuCount < DeemerSpawnTime) kakuCount++;
if (HealthCount < HealthAwardTime) HealthCount++;
if (DeemerSpawnTime - kakuCount < 5 && DeemerSpawnTime - kakuCount > 0)
{
BroadcastLocalizedMessage(class 'MH2RandomDeemerMsg', DeemerSpawnTime - kakuCount, PRand.PlayerReplicationInfo);
}
if (HealthAwardTime - HealthCount < 5 && HealthAwardTime - HealthCount > 0)
{
BroadcastLocalizedMessage(class 'MH2RandomHealthMsg', HealthAwardTime - HealthCount, PRand.PlayerReplicationInfo);
}
if (kakuCount >= DeemerSpawnTime)
{
kakuCount = 0;
PRand = GetRandomPlayer();
if (PRand != None && PRand.bIsPlayer)
{
BroadcastLocalizedMessage(class 'MH2RandomDeemerMsg', kakuCount, PRand.PlayerReplicationInfo);
if (Use2k4Deemer)
GiveRedeemer(PRand);
else
GiveOldRedeemer(PRand);
}
}
if (HealthCount >= HealthAwardTime)
{
HealthCount = 0;
PRand = GetRandomPlayer();
if (PRand != None && PRand.bIsPlayer)
{
BroadcastLocalizedMessage(class 'MH2RandomHealthMsg', HealthCount, PRand.PlayerReplicationInfo);
GiveHealth(PRand);
}
}
}
}
}
}
but i got this Log: Compiling MH2Base
Error: D:\UT coding\UnrealTournament\MonsterHunt2GoldUKv5\Classes\MH2Base.uc(1054) : Error, Bad or missing expression in 'If'