Determine winner
#1

I have a script that show a textdraw for both teams ( green = hobo & blue = clown ).When green team killed blue team they will got 1 score and the textdraw will add 1 score for them.And I have a timer that set 5 mins/round.What I want to do is when the time at 4:50 it will announce which team is the winner based on the textdraw score.

My textdraw for score :

PHP код:
new Text:greenheader;
new 
Text:blueheader;
new 
Text:greenkills;
new 
Text:bluekills
PHP код:
greenheader TextDrawCreate(515,280,"HOBO :");//
blueheader TextDrawCreate(515,320,"CLOWN :");//
greenkills TextDrawCreate(515,300," ");//
bluekills TextDrawCreate(515,340," ");// 
PHP код:
SetTimer("TextDrawUpdate",999,true); 
PHP код:
forward TextDrawUpdate();
public 
TextDrawUpdate()
{
        new 
str1[50],str2[50];
        
//format killcounters
        
format(str1,sizeof(str1),"%i",greenkillcount);
        
format(str2,sizeof(str2),"%i",bluekillcount);
        
//set the empty textdraw's
        
TextDrawSetString(greenkills,str1);
        
TextDrawSetString(bluekills,str2);
        
//show textdraw here so that it will update
        
TextDrawShowForAll(greenkills);
        
TextDrawShowForAll(bluekills);
        
TextDrawShowForAll(greenheader);
        
TextDrawShowForAll(blueheader);

Reply


Messages In This Thread
Determine winner - by Sh4d0w2 - 05.11.2015, 13:28
Re: Determine winner - by jeffery30162 - 05.11.2015, 13:54
Re: Determine winner - by Sh4d0w2 - 05.11.2015, 13:56
Re: Determine winner - by jeffery30162 - 05.11.2015, 13:58
Re: Determine winner - by Sh4d0w2 - 05.11.2015, 14:01
Re: Determine winner - by jeffery30162 - 05.11.2015, 15:22
Re: Determine winner - by Sh4d0w2 - 05.11.2015, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)