20.07.2009, 10:50
Try adding
above
and every other command, where playerstate changes.
Код:
InCar[targetid] = 0;
Код:
RemovePlayerFromVehicle(targetid);
pawn Код:
stock IsBike(carid) {
new Bikes[] = { 581, 462, 521, 463, 522, 523, 461, 448, 471, 468, 586, 509, 481, 510 };
for(new i = 0; i < sizeof(Bikes); i++) {
if(GetVehicleModel(carid) == Bikes[i]) return 1;
}
return 0;
}
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT)
{
if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
{
if(IsBike(GetPlayerVehicleID(playerid)) {
InCar[playerid] = 1;
WhatCar[playerid] = GetPlayerVehicleID(playerid);
}
}
}

