Display Kills
#9

Quote:
Originally Posted by blackwave
Посмотреть сообщение
forward update(); // TOP
// end
pawn Код:
public update()
{
   new newtext[41];
   format(newtext, sizeof(newtext), "Kills: %s", kills[killerid]);
   SetTextDrawString(killtext, string);
   SetTimerEx("update", 5000, true, "i");
   return 1;
}

Also, add on OnGameModeInit: SetTimerEx("update", 5000, true, "i");
You don't need a timer you can just add in on OnPlayerDeath.
It it faster and uses less CPU.
Reply


Messages In This Thread
Display Kills - by BlackWolf120 - 10.12.2010, 13:11
Re: Display Kills - by BlackWolf120 - 11.12.2010, 15:55
Re: Display Kills - by blackwave - 11.12.2010, 15:59
Re: Display Kills - by veyron - 11.12.2010, 16:11
Re: Display Kills - by BlackWolf120 - 11.12.2010, 16:20
Re: Display Kills - by WillyP - 12.12.2010, 11:56
Re: Display Kills - by WillyP - 12.12.2010, 12:02
Re: Display Kills - by BlackWolf120 - 12.12.2010, 12:05
Re: Display Kills - by DVDK - 12.12.2010, 12:12
Re: Display Kills - by BlackWolf120 - 12.12.2010, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)