textdraw, help please :P
#1

Well guys, I made a textdraw on player death.
But I want it to dissapear in 2 seconds.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[286];
   
    format(string,sizeof(string),"You killed %s",playername[playerid]);
    killdraw = TextDrawCreate(255,45,string);
    TextDrawSetOutline(killdraw,1);
    TextDrawBackgroundColor(killdraw,COLOR_VIOLETRED);
    TextDrawShowForPlayer(playerid,killdraw);
    TextDrawTextSize(killdraw,10,10);
    TextDrawSetShadow(killdraw,10);
    kills[killerid] ++;
    deaths[playerid] ++;
    SetTimer("killtimer",2000,true);
   
   
    return 1;
}
pawn Код:
public killtimer(playerid)
{
    TextDrawHideForPlayer(playerid,killdraw);
    return 1;
}
but it doesn't dissapear.
It stays forever. :O
please help
Reply


Messages In This Thread
textdraw, help please :P - by bartje01 - 24.07.2010, 11:41
Re: textdraw, help please :P - by Jochemd - 24.07.2010, 13:40
Re: textdraw, help please :P - by Jay. - 24.07.2010, 13:43
Re: textdraw, help please :P - by bartje01 - 24.07.2010, 14:46
Re: textdraw, help please :P - by ViruZZzZ_ChiLLL - 24.07.2010, 14:56
Re: textdraw, help please :P - by KennethRandall - 24.07.2010, 15:22
Re: textdraw, help please :P - by bartje01 - 24.07.2010, 15:35

Forum Jump:


Users browsing this thread: 2 Guest(s)