50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetFirstPC();
|
|
object oMod = GetModule();
|
|
int oCount=0;
|
|
int iDied, iKilled, aScore;
|
|
int iRankNo = GetLocalInt(oPC, "status");
|
|
string oRank;
|
|
PlaySound("gui_select");
|
|
string SpeakText="\n================================\n";
|
|
SpeakText+="Kills/Deaths Score/Rank\n";
|
|
SpeakText+="--------------------------------\n";
|
|
int oPlayers = GetLocalInt(oMod, "num_players");
|
|
while (GetIsPC(oPC) == TRUE)
|
|
{
|
|
++oCount;
|
|
iKilled = GetLocalInt (oPC,"iKilled");
|
|
iDied = GetLocalInt (oPC,"iDied");
|
|
aScore = GetLocalInt(oPC, "a_score");
|
|
oRank = GetLocalString(oPC, "rank");
|
|
SpeakText +=IntToString(oCount);
|
|
SpeakText +=". ";
|
|
SpeakText += GetName(oPC);
|
|
SpeakText += ": ";
|
|
SpeakText += IntToString(iKilled);
|
|
SpeakText += "/";
|
|
SpeakText += IntToString(iDied);
|
|
SpeakText += " ";
|
|
if (aScore==0){SpeakText +="NCC";}
|
|
else{SpeakText += IntToString(aScore);}
|
|
SpeakText += "/";
|
|
SpeakText += IntToString(iRankNo)+". "+oRank;
|
|
SpeakText += "\n";
|
|
if (aScore==0){SpeakText +="* NCC: No Challenges Completed.\n";}
|
|
// Get the next player
|
|
oPC = GetNextPC();
|
|
|
|
}
|
|
SpeakText+="\n";
|
|
SpeakText+="Total: ";
|
|
SpeakText+=IntToString(oPlayers);
|
|
if (oPlayers==1)
|
|
{SpeakText+=" player.";}
|
|
else {SpeakText+=" players.";}
|
|
|
|
SpeakString(SpeakText);
|
|
}
|