Best way to do this?
#3

So just:

pawn Код:
for( new e; e < MAX_ENTRANCES; e ++ )
{
    if( IsPlayerInRangeOfPoint( playerid, 1.5, EntranceInfo [ e ] [ eX ], EntranceInfo [ e ] [ eY ], EntranceInfo [ e ] [ eZ ] ) && tdShown [ playerid ] == false )
    {
        tdShown [ playerid ] = true;
        TextDrawShowForPlayer( playerid, EnterExitHelp );
        break;
    }
    else if( tdShown [ playerid ] == true && !IsPlayerInRangeOfPoint( playerid, 1.5, EntranceInfo [ e ] [ eX ], EntranceInfo [ e ] [ eY ], EntranceInfo [ e ] [ eZ ] ) )
    {
        tdShown [ playerid ] = false;
        TextDrawHideForPlayer( playerid, EnterExitHelp );
    }
}
Reply


Messages In This Thread
Best way to do this? - by 2KY - 28.11.2012, 19:10
Re: Best way to do this? - by Vince - 28.11.2012, 19:18
Re: Best way to do this? - by 2KY - 28.11.2012, 19:31
Re: Best way to do this? - by Bakr - 28.11.2012, 19:33
Re: Best way to do this? - by 2KY - 28.11.2012, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)