Random TextDraw in "OnPlayerDeath"?
#3

Make the textdraw, store the ID and replace it on my comments
pawn Код:
new
    Random_Death_Msg[ ][ ] =
    {
        "Ahaha! you're fuc**d now!",
        "Oh Oh! You're died!",
        "What are you doing man? Wake up!"
    }
;

public OnPlayerDeath( playerid, killerid, reason )
{
    new
        rand = random( sizeof( Random_Death_Msg ) )
    ;
    TextDrawSetString( /* The TextDraw to change */, Random_Death_Msg[ rand ] );
    TextDrawShowForPlayer( playerid, /* The ID of the textdraw to show */ );
    SetTimerEx( "OnPlayerHideDeathTD", 3000, false, "i", playerid );
    return 1;
}

forward OnPlayerHideDeathTD( playerid );
public OnPlayerHideDeathTD( playerid )
{
    TextDrawHideForPlayer( playerid, /* The ID of the textdraw to show */ );
}
EDIT:
Quote:
Originally Posted by Misiur
Посмотреть сообщение
and if your next post/thread will be "pls give me textdraw code", I'll find you, and I'll kill you.
lol
Reply


Messages In This Thread
Random TextDraw in "OnPlayerDeath"? - by KurtAngle - 29.08.2013, 07:54
Re: Random TextDraw in "OnPlayerDeath"? - by KurtAngle - 29.08.2013, 10:08
Re: Random TextDraw in "OnPlayerDeath"? - by Konstantinos - 29.08.2013, 10:18
Re: Random TextDraw in "OnPlayerDeath"? - by Misiur - 29.08.2013, 10:21
Re: Random TextDraw in "OnPlayerDeath"? - by Aliassassin123456 - 29.08.2013, 10:28
Re: Random TextDraw in "OnPlayerDeath"? - by KurtAngle - 29.08.2013, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)