PutPlayerInVehicle (Not working if seat = 0)
#1

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(LastCar[playerid] == 1 || Seatbelt[playerid] == true)
    {
        new string[125];
        format(string,sizeof(string),"* %s tries to exit the vehicle but the seatbelt is on.",sendername(playerid));
        SetPlayerChatBubble(playerid,string,PURPLE,10,5000);
        MSG(playerid,COLOR_RED,"SERVER: Unbuckle your seatbelt to exit the vehicle.");
        PutPlayerInVehicle(playerid,LastCar[playerid],GetPlayerVehicleSeat(playerid));
        printf("Seat: %i Car: %i",GetPlayerVehicleSeat(playerid),LastCar[playerid]);

    }
        return 1;
}
Title says it all if the player is in the seat id 0 (AKA: Driver) he wont be set back in the vehicle. Other seats working fine.


Thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)