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.