12.08.2014, 05:22
Quote:
Want to prevent the player from entering a car/vehicle? Then use OnPlayerEnterVehicle.
pawn Код:
GetPlayerVehicleID. Returns 0 if player isn't in a vehicle. Returns the vehicle ID That the player is in it. |
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(// if vehicle isn't of the player)
{
RemovePlayerFromVehicle(playerid);
ShowPlayerLangDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Prywatny Pojazd", "Private Vehicle", "To nie twoj pojazd!\nMozesz kupic wlasny pod komenda /sklep", "This is not your vehicle\nBuy vehicles in /sklep", "Wyjdz", "Exit", "","");
ClearAnimations(playerid);
}
return 1;
}