17.03.2015, 16:01
maybe use it on OnPlayerEnterVehicle..
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
if(RentVozila(vehicleid))
{
if(Rentano[playerid] != vehicleid)
{
ShowPlayerDialog(playerid,DIALOG_RENT,DIALOG_STYLE_LIST,"Iznamjite vozilo","[1] Rent Vrijeme - N/A (500$)","Odaberi","Izlaz");
TogglePlayerControllable(playerid,0);
}
}
return 1;
}