06.10.2010, 15:28
Try:
pawn Код:
//===========================[TextDraw creating]===========================================
//===========================[CREDITS: Ellis / FanKurT]===========================================
stock ShowInfoText( playerid, text[ ], time, sound = true )
{
// Funkcija: ShowInfoText( playerid, text[ ] )
// Parodys юaidлjui kvadratukа, su informacija
switch(InfoText[ playerid ])
{
case INVALID_TEXT_DRAW:
{
InfoText[ playerid ] = CreateInfoText( text );
TextDrawShowForPlayer( playerid, InfoText[ playerid ] );
SetTimerEx ( "HideInfoText", time, false, "d", playerid );
}
}
if ( sound ) PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 );
}
public HideInfoText( playerid )
{
// Funkcija: HideInfoText( playerid )
// Paslлps info tekstа юaidлjui
switch( InfoText[ playerid ])
{
case INVALID_TEXT_DRAW: {}
default:
{
TextDrawHideForPlayer( playerid, InfoText[ playerid ] );
TextDrawDestroy ( InfoText[ playerid ] );
InfoText[ playerid ] = INVALID_TEXT_DRAW;
}
}
return true;
}