hlmod.hu
https://hlmod.hu/

Legjobb körben!
https://hlmod.hu/viewtopic.php?f=29&t=22084
Oldal: 1 / 1

Szerző:  PistaCFG [2015.08.29. 19:16 ]
Hozzászólás témája:  Legjobb körben!

Hali, valaki azt meg tudja csinálni hogy mikor öngyilkos leszek akkor ne írja ki hudban hogy ki volt a legjobb a körben? Előre is Köszönöm.

Kód:
public RoundEnd()
{
   new players[32], num;
   get_players(players, num);
   SortCustom1D(players, num, "sort_bestplayer")
   
   top1 = players[0]
   top2 = players[1]
   top3 = players[2]
   
   new top1neve[33], top2neve[33], top3neve[33];
   get_user_name(top1, top1neve, charsmax(top1neve))
   get_user_name(top2, top2neve, charsmax(top2neve))
   get_user_name(top3, top3neve, charsmax(top3neve))
   
   set_dhudmessage(255, 255, 255, -1.0, 0.0, 0, 6.0, 12.0)
   show_dhudmessage(0, "Ebben a körben a legjobbak^n1. %s +1 Láda || 2. %s +1 Láda || 3. %s +1 Láda ", top1neve, top2neve, top3neve)
   client_print(0, print_chat, "")
 
   for(new i; i < 31; i++)
   {
      g_iKills[i] = 0;
   }
}
 
public sort_bestplayer(id1, id2)
{
   if(g_iKills[id1] > g_iKills[id2])
      return -1;
   else if(g_iKills[id1] < g_iKills[id2])
      return 1;
 
   return 0;
}

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/