never get paid what's wrong ?
#2

Try This:
pawn Код:
public FairTime( playerid )
{
    if( !IsPlayerInAnyVehicle( playerid ) ) return ( 0 );
    new seat = GetPlayerVehicleSeat( playerid ), Float:x, Float:y, Float:z;
    GetPlayerPos( playerid, x, y, z );
    if( seat == 1 || seat == 2 || seat == 3 )
    {
        GivePlayerMoney( playerid, -5 );
        SendClientMessage( playerid, COLOR_WHITE, "{ff0000}[PAYMENT] You have paid the taxi driver $5" );
        pAmount[ playerid ] += 5;
    }
    for( new i = 0; i < MAX_PLAYERS; i ++ )
    {
        if( IsPlayerInRangeOfPoint( i, 3, x, y, z ) )
        {
            new vehicle = GetPlayerVehicleID( i ), model = GetVehicleModel( vehicle );
            if( model == 420 || model == 438 )
            {
                GivePlayerMoney( i, 5 );
                SendClientMessage( i, COLOR_WHITE, "{00ff00}[PAYMENT] You have been paid $5 by the passenger" );
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
never get paid what's wrong ? - by [LHT]Bally - 25.09.2011, 15:08
Re: never get paid what's wrong ? - by aRoach - 25.09.2011, 15:17
Re: never get paid what's wrong ? - by [LHT]Bally - 25.09.2011, 15:34
Re: never get paid what's wrong ? - by [MWR]Blood - 25.09.2011, 15:46
Re: never get paid what's wrong ? - by [LHT]Bally - 25.09.2011, 15:51
Re: never get paid what's wrong ? - by [MWR]Blood - 25.09.2011, 15:56
Re: never get paid what's wrong ? - by [LHT]Bally - 25.09.2011, 19:20
Re: never get paid what's wrong ? - by [LHT]Bally - 25.09.2011, 19:56
Re: never get paid what's wrong ? - by [LHT]Bally - 26.09.2011, 09:58
Re: never get paid what's wrong ? - by [LHT]Bally - 26.09.2011, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)