07.09.2014, 11:00
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;
}
Thanks.