07.03.2014, 20:45
I have this
This under OnPlayerConnect
This under OnPlayerStateChange
PHP код:
//Taxi variables
#define TAXI 17
new bool:TaxiDuty[MAX_PLAYERS char],
TaxiFare[MAX_PLAYERS char],
bool:TaxiStart[MAX_PLAYERS char],
TaxiMoney[MAX_PLAYERS],
OldVehicle[MAX_PLAYERS],
TaxiMade[MAX_PLAYERS];
//Taxi variables
PHP код:
TaxiDuty[playerid] = false; TaxiFare[playerid] = 0; TaxiStart[playerid] = false; TaxiMoney[playerid] = 0; TaxiMade[playerid] = 0;
PHP код:
if(TaxiMoney[playerid] > 0 && IsATaxi(oldvehicle))
{
ChargePerson(playerid);
}