#5

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
use OnPlayerStateChange..

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER) {
        if(GetPlayerMoney(playerid) < TransportCost[playerid]) RemovePlayerFromVehicle(playerid);
    }
   
    return 1;
}
Although, I'm not quite sure what you are doing with the TransportCost[i]. Is it the transport cost for the player? or the taxi driver?
this is when i enter but..if the taxi driver ties me..he makes money..so i want if the fare is over 400..to kick me out of car.
Reply


Messages In This Thread
Taxi - by Akcent_Voltaj - 04.04.2013, 11:44
Re: Taxi - by DaRk_RaiN - 04.04.2013, 12:32
Re: Taxi - by Faisal_khan - 04.04.2013, 12:33
Re: Taxi - by thefatshizms - 04.04.2013, 12:39
Re: Taxi - by Akcent_Voltaj - 04.04.2013, 13:57
Re: Taxi - by Faisal_khan - 04.04.2013, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)