29.08.2013, 10:18
Make the textdraw, store the ID and replace it on my comments
EDIT:
lol
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 */ );
}
lol


