Pickup problems
#6

pawn Код:
// global
new
    bool: In_Pickup[ MAX_PLAYERS ]
;

// OnPlayerConnect
In_Pickup[ playerid ] = false;

// Where you want it to stop showing all the time.
if( IsPlayerInRangeOfPoint( playerid, 1.0, X, Y, Z ) ) // CHANGE THE COORDINATES
{
    if( !In_Pickup[ playerid ] )
    {
        In_Pickup[ playerid ] = true;
        ShowPlayerDialog( ... );
    }
}
else
{
    if( In_Pickup[ playerid ] ) In_Pickup[ playerid ] = false;
}
Reply


Messages In This Thread
Pickup problems - by CesarLT - 19.09.2013, 19:26
Re: Pickup problems - by Dana_scully - 19.09.2013, 20:12
Re: Pickup problems - by =KempeR= - 19.09.2013, 20:15
Re: Pickup problems - by CesarLT - 19.09.2013, 20:23
Re: Pickup problems - by Lidor124 - 19.09.2013, 20:31
Re: Pickup problems - by Konstantinos - 19.09.2013, 20:38
Re: Pickup problems - by Vanter - 19.09.2013, 23:31
Re: Pickup problems - by CesarLT - 20.09.2013, 00:16
Re: Pickup problems - by iJumbo - 20.09.2013, 00:18
Re: Pickup problems - by Vanter - 20.09.2013, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)