12.06.2010, 19:51
I am about to make a DM script, But how to make it when the time is up that it picks the player with the highest amount of kills?
new highestid = INVALID_PLAYER_ID;
for(new i; i<MAX_PLAYERS; i++)
{
if(GetPlayerScore(i) > GetPlayerScore(highestid))//GetPlayerScore or some variable to represent kills
highestid = i;
}