SA-MP Forums Archive
Textdraw leader - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw leader (/showthread.php?tid=172483)



solved - jaksimaksi - 30.08.2010

solvedsolved


Re: Textdraw leader - LarzI - 30.08.2010

Aren't you supposed to run this timer all the time? Show us when/where you call the timer function if not my previous statement was true.


Re: Textdraw leader - LifeStyle - 30.08.2010

Код:
SetTimer("ModeUpdate",1000,1);



Re: Textdraw leader - RSX - 30.08.2010

First look : 1st please. don't call it every fking second, call it only under OnPlayerDeath >> if(killerid!=playerid) - for being "up to date all the time". Or you can run it every 5 or even more seconds (Repost the result if approval needed or doesn't work) 2st you don't hide the TextDraw, that must be done, and 3rd - on bigger codes please use [ pawn ] [ /pawn ] tags, that makes all indexes visible. It isn't on the upper formating menu i guess, so i don't force you to, just please ,

Oh and don't forget to assign the leaders kill amount, i don't see if it's done in your script. Last thing : check if player isn't already leader, and make a bridge variable to check if someone hasn't already got more.

Ohh... and your TextDraw fails. Learn about textdraws.