TD not hiding with SetTimer function?
#2

Quote:
Originally Posted by wallen
Посмотреть сообщение
OnPlayerDeath

PHP код:
    Killed[killerid]++;
    if(
Killed[killerid] == 1)
    {
    
format(iStringsizeof iString"+ %d"Killed[killerid]);
    
TextDrawSetString(EARNS[killerid], iString);
    
SetTimer("HideTextdraw"500false);
    } 
PHP код:
forward HideTextdraw(playerid);
public 
HideTextdraw(playerid)
{
    
TextDrawHideForPlayer(playeridEARNS[playerid]);
    
TextDrawHideForPlayer(playeridKilledBy[playerid]);

Код:
new timer_in_death[MAX_PLAYERS];
PHP код:

    Killed
[killerid]++; 
    if(
Killed[killerid] == 1
    { 
    
format(iStringsizeof iString"+ %d"Killed[killerid]); 
    
TextDrawShowForPlayer(killeridEARNS[killerid]);  
    
TextDrawSetString(EARNS[killerid], iString);
    
timer_in_death[killerid] = SetTimerEx("HideTextdraw"500false"d"killerid);
    }
forward HideTextdraw(killerid);
public 
HideTextdraw(killerid)
{
    
TextDrawHideForPlayer(killeridEARNS[killerid]);
        
KillTimer(timer_in_death[killerid]);
        return 
1;

You can tell if this works.
Reply


Messages In This Thread
TD not hiding with SetTimer function? - by wallen - 06.02.2018, 15:45
Re: TD not hiding with SetTimer function? - by dani18 - 06.02.2018, 15:53
Re: TD not hiding with SetTimer function? - by wallen - 06.02.2018, 16:03
Re: TD not hiding with SetTimer function? - by dani18 - 06.02.2018, 16:04
Re: TD not hiding with SetTimer function? - by wallen - 06.02.2018, 16:06
Re: TD not hiding with SetTimer function? - by Mugala - 06.02.2018, 19:54
Re: TD not hiding with SetTimer function? - by solstice_ - 06.02.2018, 20:11
Re: TD not hiding with SetTimer function? - by Private200 - 06.02.2018, 20:29
Re: TD not hiding with SetTimer function? - by wallen - 06.02.2018, 20:41
Re: TD not hiding with SetTimer function? - by Private200 - 06.02.2018, 20:55

Forum Jump:


Users browsing this thread: 2 Guest(s)