DM help
#1

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?
Reply
#2

pawn Код:
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;
}
Reply
#3

Thanks, this helps me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)